updating monsters schema

merge-requests/35/merge
James R Miller 2019-08-18 19:20:49 -05:00
parent 80310f8789
commit 6320ab685c
1 changed files with 9 additions and 1 deletions

View File

@ -2,11 +2,19 @@
PRAGMA foreign_keys = ON; PRAGMA foreign_keys = ON;
-- TODO needs data
CREATE TABLE monstertypes(
monstertypes_id INTEGER PRIMARY KEY,
"name" TEXT NOT NULL UNIQUE
);
CREATE TABLE monsters ( CREATE TABLE monsters (
monsters_id INTEGER PRIMARY KEY, monsters_id INTEGER PRIMARY KEY,
is_comty_use BOOLEAN NOT NULL, -- false = no community use policy req is_comty_use BOOLEAN NOT NULL, -- false = no community use policy req
sources_id INTEGER, sources_id INTEGER,
sources_pages TEXT, sources_pages TEXT,
monstertypes_id INTEGER, -- Humanoid etc..
"name" TEXT NOT NULL UNIQUE, "name" TEXT NOT NULL UNIQUE,
"level" INTEGER, "level" INTEGER,
alignment_id INTEGER, -- i.e. NG, LE etc.. alignment_id INTEGER, -- i.e. NG, LE etc..
@ -17,7 +25,7 @@ CREATE TABLE monsters (
reflex INTEGER, reflex INTEGER,
will INTEGER, will INTEGER,
hp INTEGER, hp INTEGER,
speed INTEGER, land_speed INTEGER, -- will have separate many-to-many table for other movements
str_mod INTEGER, str_mod INTEGER,
dex_mod INTEGER, dex_mod INTEGER,
con_mod INTEGER, con_mod INTEGER,