From f011f99514c304521e14eb00b2c6e6d4b2c3dd11 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Mon, 13 Mar 2023 00:23:26 +0900 Subject: Add table to manage transaction type codes. --- deploy/transaction_types.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 deploy/transaction_types.sql (limited to 'deploy') diff --git a/deploy/transaction_types.sql b/deploy/transaction_types.sql new file mode 100644 index 0000000..cf07925 --- /dev/null +++ b/deploy/transaction_types.sql @@ -0,0 +1,12 @@ +-- Deploy kakeibo:transaction_types to pg +-- requires: schema + +BEGIN; + +CREATE TABLE kakeibo.transaction_types ( + code INTEGER PRIMARY KEY, + name TEXT NOT NULL +); +INSERT INTO kakeibo.transaction_types VALUES (0, 'outgo'), (1, 'income'); + +COMMIT; -- cgit v1.2.3