Ancestries

This commit is contained in:
Brian Haley committed 2019-11-12 22:36:22 -05:00
1 parent df5edb5d94
commit 7be2365598
2 files changed
+48 -9

No files matched your search

+9 -2
View File
@@ -10,8 +10,6 @@ table that matches feats to ancestries, etc..
CREATE TABLE ancestries (
ancestry_id INTEGER PRIMARY KEY,
sources_id INTEGER NOT NULL,
sources_pages TEXT,
short_name TEXT NOT NULL UNIQUE,
flavor_text TEXT NOT NULL,
hp INTEGER NOT NULL,
@@ -85,3 +83,12 @@ CREATE TABLE ancestry_additionalangs (
FOREIGN KEY (ancestry_id) REFERENCES ancestries(ancestry_id),
FOREIGN KEY (lang_id) REFERENCES langs(lang_id)
);
CREATE TABLE ancestries_sourceentries (
id INTEGER PRIMARY KEY
,ancestry_id INTEGER NOT NULL
,sourceentry_id INTEGER NOT NULL
,UNIQUE (id, actions_id, soruceentry_id),
,FOREIGN KEY (ancestry_id) REFERENCES ancestries(ancestry_id)
,FOREIGN KEY (sourceentry_id) REFERENCES sourceentries(sourceentry_id)
);