introduce new transaction table
1 files changed, 10 insertions(+), 0 deletions(-) M schema.sql
M schema.sql => schema.sql +10-0
@@ 6,3 6,13 @@ CREATE TABLE IF NOT EXISTS account ( password text NULL, admin boolean NOT NULL DEFAULT FALSE ); CREATE TABLE IF NOT EXISTS transaction ( id integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY, account_id uuid NOT NULL REFERENCES account(id), iban text NOT NULL, amount bigint NOT NULL, transaction_date date NOT NULL, interest_date date NOT NULL, description text NOT NULL );