Updated spells, cleaned up duration spell schema

This commit is contained in:
Benjamin Sherriff
2023-10-03 23:43:58 -04:00
parent 75a71410a5
commit 25f52fb46d
4 changed files with 277 additions and 68 deletions

View File

@@ -22,11 +22,9 @@ CREATE TABLE IF NOT EXISTS spells (
components_materials_needed TEXT,
components_materials_cost INTEGER,
components_materials_consumed BOOLEAN DEFAULT FALSE,
duration_type TEXT NOT NULL,
duration_amount INTEGER,
duration_unit TEXT,
durations JSONB NOT NULL,
classes TEXT[] NOT NULL,
sources TEXT[] NOT NULL,
sources JSONB NOT NULL,
tags TEXT[],
description JSONB NOT NULL
);