mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-16 22:29:44 -04:00
Ancestries
This commit is contained in:
1 parent
df5edb5d94
commit
7be2365598
2 files changed
+48
-9
No files matched your search
@@ -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)
|
||||
);
|
||||
Reference in new issue
Block a user