add movements data

This commit is contained in:
jrmiller82 committed 2019-08-18 20:01:46 -05:00
1 parent aa4ae5473f
commit 453dd03232
3 files changed
+22 -1

No files matched your search

+10
View File
@@ -98,6 +98,16 @@ CREATE TABLE monsters_traits (
FOREIGN KEY (traits_id) REFERENCES traits(trait_id)
);
CREATE TABLE monster_movements (
id INTEGER PRIMARY KEY,
monsters_id INTEGER NOT NULL,
movements_id INTEGER NOT NULL,
movement_speed INTEGER NOT NULL, -- this is the actual monster speed
UNIQUE (monsters_id, movements_id), -- prevent duplicates
FOREIGN KEY (monsters_id) REFERENCES monsters(monsters_id),
FOREIGN KEY (movements_id) REFERENCES movements(movements_id)
);
-- TODO does this need to be separate table for monsters only or share the main
-- actions table
CREATE TABLE monsteractions (