forked from DigiFi/digifi-BankToProductCore
SQL Storage
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user