Refactored into service directory

This commit is contained in:
Benjamin Sherriff
2023-10-04 16:52:09 -04:00
parent be4ab2bc69
commit 06f8af6051
63 changed files with 11 additions and 577 deletions

View File

@@ -0,0 +1 @@
DROP TABLE spells;

View File

@@ -0,0 +1,15 @@
CREATE TABLE IF NOT EXISTS spells (
id INTEGER GENERATED ALWAYS AS IDENTITY,
name TEXT NOT NULL,
school TEXT NOT NULL,
level INTEGER NOT NULL,
ritual BOOLEAN DEFAULT FALSE,
concentration BOOLEAN DEFAULT FALSE,
classes TEXT[] NOT NULL,
damage_inflict TEXT[] NOT NULL,
damage_resist TEXT[] NOT NULL,
conditions TEXT[] NOT NULL,
saving_throw TEXT[] NOT NULL,
attack_type TEXT,
data JSONB NOT NULL
);