From c71ad3b5bd513f0b57c06f554ffe9134d2604660 Mon Sep 17 00:00:00 2001 From: James R Miller Date: Sun, 18 Aug 2019 17:45:10 -0500 Subject: [PATCH] add monsters_traits table to monsters schema --- schema/monsters.sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/schema/monsters.sql b/schema/monsters.sql index 0b5ff69..1b91eb6 100644 --- a/schema/monsters.sql +++ b/schema/monsters.sql @@ -82,6 +82,14 @@ CREATE TABLE monsters_skills ( FOREIGN KEY (skills_id) REFERENCES skills(skills_id) ); +CREATE TABLE monsters_traits ( + id INTEGER PRIMARY KEY, + monsters_id INTEGER NOT NULL, + traits_id INTEGER NOT NULL, + FOREIGN KEY (monsters_id) REFERENCES monsters(monsters_id), + FOREIGN KEY (traits_id) REFERENCES traits(traits_id) +); + -- TODO does this need to be separate table for monsters only or share the main -- actions table CREATE TABLE monsteractions (