Add other db tables

This commit is contained in:
Benjamin Sherriff
2023-10-03 12:11:48 -04:00
parent 6c8a7ceefc
commit 95ede3291e
38 changed files with 247 additions and 26 deletions

View File

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

View File

@@ -0,0 +1,18 @@
CREATE TABLE IF NOT EXISTS spells (
id INTEGER GENERATED ALWAYS AS IDENTITY,
name TEXT NOT NULL,
school TEXT NOT NULL,
level TEXT 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
duration TEXT NOT NULL,
classes TEXT[] NOT NULL,
sources TEXT[] NOT NULL,
tags TEXT[]
description TEXT NOT NULL
);