overhead account stuff

This commit is contained in:
2021-11-08 21:04:21 +01:00
parent ba63874a18
commit 28e505f570
17 changed files with 204 additions and 41 deletions

View File

@ -39,6 +39,7 @@ CREATE TABLE premise_t (
,street varchar(128) not null
,zip varchar(10) not null
,city varchar(128) not null
,account integer not null references account_t (id) unique
);
GRANT SELECT, INSERT, UPDATE ON premise_t TO hv2;
@ -149,6 +150,7 @@ CREATE TABLE account_entry_t (
,account integer not null references account_t (id)
,created_at timestamp not null default now()
,amount numeric(10,2) not null
,document_no integer unique
,account_entry_category integer not null references account_entry_category_t (id)
,unique(description, account, created_at)
);