From 55618dcd6a40c0b85612a20994114a18987ff43d Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Sun, 12 Mar 2023 01:57:45 +0900
Subject: Add table for tracking transactions.

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

(limited to 'deploy/transactions.sql')

diff --git a/deploy/transactions.sql b/deploy/transactions.sql
new file mode 100644
index 0000000..e37b276
--- /dev/null
+++ b/deploy/transactions.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;
-- 
cgit v1.2.3

