From 6320ab685c826d104c8210c8779fdbf7f9e79234 Mon Sep 17 00:00:00 2001 From: James R Miller Date: Sun, 18 Aug 2019 19:20:49 -0500 Subject: [PATCH] updating monsters schema --- schema/monsters.sql | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/schema/monsters.sql b/schema/monsters.sql index 3cfc182..a4b3e16 100644 --- a/schema/monsters.sql +++ b/schema/monsters.sql @@ -2,11 +2,19 @@ PRAGMA foreign_keys = ON; +-- TODO needs data + +CREATE TABLE monstertypes( + monstertypes_id INTEGER PRIMARY KEY, + "name" TEXT NOT NULL UNIQUE +); + CREATE TABLE monsters ( monsters_id INTEGER PRIMARY KEY, is_comty_use BOOLEAN NOT NULL, -- false = no community use policy req sources_id INTEGER, sources_pages TEXT, + monstertypes_id INTEGER, -- Humanoid etc.. "name" TEXT NOT NULL UNIQUE, "level" INTEGER, alignment_id INTEGER, -- i.e. NG, LE etc.. @@ -17,7 +25,7 @@ CREATE TABLE monsters ( reflex INTEGER, will INTEGER, hp INTEGER, - speed INTEGER, + land_speed INTEGER, -- will have separate many-to-many table for other movements str_mod INTEGER, dex_mod INTEGER, con_mod INTEGER,