[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

View File

@@ -1,20 +1,21 @@
create table trait
(
id INTEGER
id INTEGER
primary key,
optolith_key TEXT not null
optolith_key TEXT not null
unique,
name TEXT not null,
kind TEXT not null,
is_leveled INTEGER default 0 not null,
level_min INTEGER,
level_max INTEGER,
level_step INTEGER,
ap_cost_mode TEXT default 'FIXED' not null,
ap_wert INTEGER,
ap_per_level INTEGER,
ap_formula TEXT,
beschreibung TEXT,
name TEXT not null,
kind TEXT not null,
is_leveled INTEGER default 0 not null,
level_min INTEGER,
level_max INTEGER,
level_step INTEGER,
ap_cost_mode TEXT default 'FIXED' not null,
ap_wert INTEGER,
ap_per_level INTEGER,
ap_formula TEXT,
beschreibung TEXT,
benoetigt_parameter BOOLEAN default 0 not null,
check (ap_cost_mode IN ('FIXED', 'PER_LEVEL', 'TABLE', 'FORMULA')),
check (is_leveled IN (0, 1)),
check (kind IN ('VORTEIL', 'NACHTEIL'))