aboutsummaryrefslogtreecommitdiff
path: root/deploy/transactions@v1.0.0-alpha.1.sql
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2023-03-13 00:11:31 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2023-03-13 00:17:07 +0900
commit05b6e730fa81a4ec02fbf361967896f0c9f3a2d4 (patch)
treee14b724d2a81bd394cb3cf38b86e1671e491bb68 /deploy/transactions@v1.0.0-alpha.1.sql
parentaae863e98b35152e8e7c0efe7919dd105c229361 (diff)
Add article_id column to transactions table.
Diffstat (limited to 'deploy/transactions@v1.0.0-alpha.1.sql')
-rw-r--r--deploy/transactions@v1.0.0-alpha.1.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/transactions@v1.0.0-alpha.1.sql b/deploy/transactions@v1.0.0-alpha.1.sql
new file mode 100644
index 0000000..e37b276
--- /dev/null
+++ b/deploy/transactions@v1.0.0-alpha.1.sql
@@ -0,0 +1,15 @@
+-- Deploy kakeibo:transactions to pg
+-- requires: schema
+
+BEGIN;
+
+CREATE TABLE kakeibo.transactions (
+ id SERIAL PRIMARY KEY,
+ type_code INTEGER,
+ date DATE NOT NULL,
+ note TEXT,
+ created_at TIMESTAMP NOT NULL DEFAULT NOW(),
+ updated_at TIMESTAMP NOT NULL DEFAULT NOW()
+);
+
+COMMIT;