From 4b552c58f5988d1af18ef34ccec5979081c3bc14 Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Sun, 5 Mar 2023 12:49:00 +0900
Subject: Add types table for manage type column of transactions.

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

(limited to 'deploy/types.sql')

diff --git a/deploy/types.sql b/deploy/types.sql
new file mode 100644
index 0000000..7d13dd8
--- /dev/null
+++ b/deploy/types.sql
@@ -0,0 +1,12 @@
+-- Deploy kakeibo:types to pg
+-- requires: appschema
+
+BEGIN;
+
+CREATE TABLE kakeibo.types (
+  code INTEGER PRIMARY KEY,
+  name TEXT NOT NULL
+);
+INSERT INTO kakeibo.types VALUES (0, '支出'),  (1, '収入');
+
+COMMIT;
-- 
cgit v1.2.3

