Spells endpoints

This commit is contained in:
Benjamin Sherriff
2023-10-03 14:21:53 -04:00
parent 95ede3291e
commit 16d8fa5af8
10 changed files with 330 additions and 98 deletions

View File

@@ -2,17 +2,17 @@ CREATE TABLE IF NOT EXISTS spells (
id INTEGER GENERATED ALWAYS AS IDENTITY,
name TEXT NOT NULL,
school TEXT NOT NULL,
level TEXT NOT NULL,
level INTEGER NOT NULL,
ritual BOOLEAN DEFAULT FALSE,
casting_time TEXT NOT NULL,
range TEXT NOT NULL,
components_verbal BOOLEAN DEFAULT FALSE,
components_somatic BOOLEAN DEFAULT FALSE,
components_material BOOLEAN DEFAULT FALSE,
components_materials_needed TEXT
components_materials_needed TEXT,
duration TEXT NOT NULL,
classes TEXT[] NOT NULL,
sources TEXT[] NOT NULL,
tags TEXT[]
tags TEXT[],
description TEXT NOT NULL
);