[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

View File

@@ -0,0 +1,14 @@
create table spell_merkmal
(
spell_id INTEGER not null
references spell
on delete cascade,
merkmal_id INTEGER not null
references merkmal
on delete restrict,
primary key (spell_id, merkmal_id)
);
create index idx_spell_merkmal_m
on spell_merkmal (merkmal_id);