Updated spells schema

This commit is contained in:
Benjamin Sherriff
2023-10-03 21:00:14 -04:00
parent 16d8fa5af8
commit 75a71410a5
13 changed files with 890 additions and 143 deletions

View File

@@ -4,15 +4,29 @@ CREATE TABLE IF NOT EXISTS spells (
school TEXT NOT NULL,
level INTEGER NOT NULL,
ritual BOOLEAN DEFAULT FALSE,
casting_time TEXT NOT NULL,
range TEXT NOT NULL,
casting_time_amount INTEGER NOT NULL,
casting_time_unit TEXT NOT NULL,
saving_throw TEXT[],
attack_type TEXT,
damage_type TEXT,
conditions TEXT[],
range_type TEXT NOT NULL,
range_amount INTEGER,
range_unit TEXT,
area_type TEXT,
area_amount INTEGER,
area_unit TEXT,
components_verbal BOOLEAN DEFAULT FALSE,
components_somatic BOOLEAN DEFAULT FALSE,
components_material BOOLEAN DEFAULT FALSE,
components_materials_needed TEXT,
duration TEXT NOT NULL,
components_materials_cost INTEGER,
components_materials_consumed BOOLEAN DEFAULT FALSE,
duration_type TEXT NOT NULL,
duration_amount INTEGER,
duration_unit TEXT,
classes TEXT[] NOT NULL,
sources TEXT[] NOT NULL,
tags TEXT[],
description TEXT NOT NULL
description JSONB NOT NULL
);