From c9248050393c04a0af8d359f92607c0e6888371a Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Sun, 5 Mar 2023 23:05:22 +0900
Subject: Add table for link to diary 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..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;
-- 
cgit v1.2.3

