[feat] add initial database schema with tables, triggers, and views

This commit is contained in:
2025-08-21 00:22:03 +02:00
parent 31af27f515
commit b8f33e252a
68 changed files with 882 additions and 0 deletions

22
database/main/liturgy.sql Normal file
View File

@@ -0,0 +1,22 @@
create table liturgy
(
id INTEGER
primary key,
optolith_key TEXT not null
unique,
name TEXT not null,
probe_attr1_id INTEGER not null
references attribute,
probe_attr2_id INTEGER not null
references attribute,
probe_attr3_id INTEGER not null
references attribute,
wirkung TEXT,
dauer TEXT,
kap_kosten TEXT,
reichweite TEXT,
wirkungsdauer TEXT,
steig_faktor TEXT not null,
check (steig_faktor IN ('A', 'B', 'C', 'D'))
);