mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-12 22:29:44 -04:00
start work on inputting feats
This commit is contained in:
1 parent
8946b129b5
commit
77edc009e5
3 files changed
+87
-4
No files matched your search
+22
-4
@@ -4,17 +4,35 @@
|
||||
|
||||
/* Need to rethink how to model the various prerequisites */
|
||||
|
||||
|
||||
CREATE TABLE feats (
|
||||
feat_id INTEGER PRIMARY KEY,
|
||||
sources_id INTEGER NOT NULL,
|
||||
sources_pages TEXT NOT NULL,
|
||||
short_name TEXT NOT NULL UNIQUE,
|
||||
prereq_feats INTEGER,
|
||||
prereq_ability_scores INTEGER,
|
||||
prereq_proficiency_ranks INTEGER,
|
||||
descr TEXT NOT NULL,
|
||||
frequency TEXT,
|
||||
triggers TEXT,
|
||||
reqs TEXT
|
||||
reqs TEXT,
|
||||
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
|
||||
);
|
||||
|
||||
CREATE TABLE featprereqs (
|
||||
featprereqs_id INTEGER PRIMARY KEY,
|
||||
descr TEXT NOT NULL UNIQUE,
|
||||
feat_id INTEGER, -- this can be NULL since not all prereqs are feats
|
||||
FOREIGN KEY (feat_id) REFERENCES feats(feat_id)
|
||||
);
|
||||
|
||||
CREATE TABLE feats_featprereqs (
|
||||
id INTEGER PRIMARY KEY,
|
||||
feat_id INTEGER NOT NULL,
|
||||
featprereqs_id INTEGER NOT NULL,
|
||||
FOREIGN KEY (feat_id) REFERENCES feats(feat_id),
|
||||
FOREIGN KEY (featprereqs_id) REFERENCES featprereqs(featprereqs_id)
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE feats_traits (
|
||||
id INTEGER PRIMARY KEY,
|
||||
feat_id INTEGER NOT NULL,
|
||||
|
||||
Reference in new issue
Block a user