From 12f3a3329df2e17d501945115e3e8a37f98ea077 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Sun, 28 Feb 2021 19:59:13 -0500 Subject: [PATCH] Add an optional note to transactions --- deploy/transactions.sql | 3 ++- verify/transactions.sql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy/transactions.sql b/deploy/transactions.sql index 61db501..4af0b24 100644 --- a/deploy/transactions.sql +++ b/deploy/transactions.sql @@ -6,7 +6,8 @@ CREATE TABLE transactions ( customer_id TEXT NOT NULL, transaction_id TEXT PRIMARY KEY, created_at timestamp NOT NULL DEFAULT(NOW()), - amount NUMERIC(12,4) NOT NULL + amount NUMERIC(12,4) NOT NULL, + note TEXT ); CREATE INDEX ON transactions (customer_id, created_at DESC); diff --git a/verify/transactions.sql b/verify/transactions.sql index 71c0190..0b41e9b 100644 --- a/verify/transactions.sql +++ b/verify/transactions.sql @@ -6,7 +6,8 @@ SELECT customer_id, transaction_id, created_at, - amount + amount, + note FROM transactions WHERE FALSE; -- 2.38.5