~inferiormartin/shishutsu

1c71d6662521f71d26b71479149dee11d050f195 — Maarten Vos a month ago 8d6a188
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
);