aboutsummaryrefslogtreecommitdiff
path: root/deploy/articles.sql
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/articles.sql')
-rw-r--r--deploy/articles.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/deploy/articles.sql b/deploy/articles.sql
new file mode 100644
index 0000000..7d61ad7
--- /dev/null
+++ b/deploy/articles.sql
@@ -0,0 +1,14 @@
+-- Deploy kakeibo:articles to pg
+-- requires: appschema
+
+BEGIN;
+
+CREATE TABLE kakeibo.articles (
+ id SERIAL PRIMARY KEY,
+ location TEXT UNIQUE,
+ title TEXT,
+ created_at TIMESTAMP NOT NULL DEFAULT NOW(),
+ updated_at TIMESTAMP NOT NULL DEFAULT NOW()
+);
+
+COMMIT;