From edd19b9a390e1b520873c949ee541d212ef898e2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 9 Apr 2025 05:41:33 -0400 Subject: [PATCH] SQL Storage --- SQL/site_data.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 SQL/site_data.sql diff --git a/SQL/site_data.sql b/SQL/site_data.sql new file mode 100644 index 0000000..c2c4176 --- /dev/null +++ b/SQL/site_data.sql @@ -0,0 +1,14 @@ + +CREATE TABLE transactions ( + id SERIAL, + transaction_id VARCHAR(50) NOT NULL, + account_id VARCHAR(50) NOT NULL, + type VARCHAR(50) NOT NULL, + channel VARCHAR(8) NOT NULL, + created_at timestamp with time zone DEFAULT now(), + updated_at timestamp with time zone DEFAULT now() +); +ALTER TABLE ONLY transactions + ADD CONSTRAINT transactions_id_key UNIQUE (id); + +