From aae863e98b35152e8e7c0efe7919dd105c229361 Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Sun, 12 Mar 2023 23:53:45 +0900
Subject: Add table to manage articles.

---
 deploy/articles.sql | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 deploy/articles.sql

(limited to 'deploy/articles.sql')

diff --git a/deploy/articles.sql b/deploy/articles.sql
new file mode 100644
index 0000000..08fcb5e
--- /dev/null
+++ b/deploy/articles.sql
@@ -0,0 +1,14 @@
+-- Deploy kakeibo:articles to pg
+-- requires: schema
+
+BEGIN;
+
+CREATE TABLE kakeibo.articles (
+  id SERIAL PRIMARY KEY,
+  location TEXT UNIQUE,
+  title TEXT NOT NULL,
+  created_at TIMESTAMP NOT NULL DEFAULT NOW(),
+  updated_at TIMESTAMP NOT NULL DEFAULT NOW()
+);
+
+COMMIT;
-- 
cgit v1.2.3

