Add go files from previous project

This commit is contained in:
2024-08-19 10:23:12 +02:00
parent f4d29aabbd
commit 5e94f44e27
7 changed files with 401 additions and 2 deletions

19
ddl.sql Normal file
View File

@@ -0,0 +1,19 @@
begin transaction;
create table Bill (
id integer PRIMARY KEY AUTOINCREMENT,
name TEXT not null
);
create index Bill_name on Bill (name);
create table Payment (
id integer PRIMARY KEY AUTOINCREMENT,
billid integer,
monthFor date not null,
paymentDate date
);
create unique index Payment_billid_monthFor_unique on Payment (billid, monthFor);
create index Payment_billid on Payment (billid);
create index Payment_monthFor on Payment (monthFor);
commit;