[feat] extend database schema with new tables and indexes

This commit is contained in:
2025-08-21 00:29:14 +02:00
parent b8f33e252a
commit 49a9e08d38
32 changed files with 392 additions and 36 deletions

18
database/main/weapon.sql Normal file
View File

@@ -0,0 +1,18 @@
create table weapon
(
id INTEGER
primary key,
item_id INTEGER not null
unique
references item
on delete cascade,
kampftechnik_id INTEGER not null
references kampftechnik
on delete restrict,
schaden_tp_formel TEXT not null,
tp_kk_schwelle INTEGER,
tp_kk_schritt INTEGER,
at_mod INTEGER default 0,
pa_mod INTEGER default 0
);