diff options
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/transactions.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy/transactions.sql b/deploy/transactions.sql new file mode 100644 index 0000000..0a1d7eb --- /dev/null +++ b/deploy/transactions.sql @@ -0,0 +1,16 @@ +-- Deploy kakeibo:transactions to pg +-- requires: appschema +-- requires: transaction_type + +BEGIN; + +CREATE TABLE kakeibo.transactions ( + id SERIAL PRIMARY KEY, + type kakeibo.transaction_type NOT NULL, + date DATE NOT NULL, + note TEXT, + created_at TIMESTAMP NOT NULL DEFAULT NOW(), + updated_at TIMESTAMP NOT NULL DEFAULT NOW() +); + +COMMIT; |