diff --git a/data/langs.sql b/data/langs.sql index 8383235..7d7b15e 100644 --- a/data/langs.sql +++ b/data/langs.sql @@ -35,6 +35,6 @@ VALUES (108, 2, 'Necril', 'Ghouls, intelligent undead'), (109, 2, 'Shadowtongue', 'Nidalese, Shadow Plane creatures'), (110, 2, 'Terran', 'Earth elemental creatures'), - -- Secret languages + -- Secret language s (200, 3, 'Druidic', 'Druids'); diff --git a/data/sources.sql b/data/sources.sql new file mode 100644 index 0000000..3759e67 --- /dev/null +++ b/data/sources.sql @@ -0,0 +1,31 @@ +-- -*- mode:sql sql-product:sqlite -*- + +/* TODO Decide on how to format the copyright block text... perhaps with Markdown? */ + + +INSERT INTO sources (sources_id, + sources_full_name, + sources_short_name, + sources_abbrev, + sources_descr, + release_date, + first_party, + ogl_copyright_block) +VALUES + (1, + 'Pathfinder Core Rulebook (Second Edition)', + 'Core Rulebook', + 'CRB', + 'Volume containing the rules core rules for players and Game Masters', + '2019-08-01', + 1, + 'Open Game License v.1.0a (c) 2000, Wizards of the Coast, Inc.; System Reference Document (c) 2000, Wizards of the Coast, Inc.; Authors: Jonathan Tweet, Monte Cook, and Skip Williams, based on material by E. Gary Gygax and Dave Arneson. Pathfinder Core Rulebook (Second Edition) (c) 2019, Paizo, Inc.; Designers: Logan Bonner, Jason Bulmahn, Stephen Radney-MacFarland, and Mark Seifter.'), + (2, + 'Pathfinder Bestiary (Second Edition)', + 'Bestiary', + 'BST1', + 'TODO', + '2019-08-01', + 1, + 'Daemon, Guardian from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Ian McDowall. Dark Creeper from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Rik Shepard. Dark Stalker from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Simon Muth. Dragon, Faerie from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Brian Jaeger and Gary Gygax. Genie, Marid from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Gary Gygax. Mite from the Tome of Horrors Complete © 2011, Necromancer Games, Inc., published and distributed by Frog God Games; Author: Scott Greene, based on original material by Ian Livingstone and Mark Barnes. Pathfinder Bestiary (Second Edition) © 2019, Paizo Inc.; Authors: Alexander Augunas, Logan Bonner, Jason Bulmahn, John Compton, Paris Crenshaw, Adam Daigle, Eleanor Ferron, Leo Glass, Thurston Hillman, James Jacobs, Jason Keeley, Lyz Liddell, Ron Lundeen, Robert G. McCreary, Tim Nightengale, Stephen Radney-MacFarland, Alex Riggs, David N. Ross, Michael Sayre, Mark Seifter, Chris S. Sims, Jeffrey Swank, Jason Tondro, Tonya Woldridge, and Linda Zayas-Palmer.'); + diff --git a/gendb.bat b/gendb.bat index 4a424f0..72ba0b2 100644 --- a/gendb.bat +++ b/gendb.bat @@ -3,6 +3,8 @@ del pf2.db :: Loading schema sqlite3 pf2.db < schema/abilityscores.sql +sqlite3 pf2.db < schema/sizes.sql +sqlite3 pf2.db < schema/sources.sql sqlite3 pf2.db < schema/langs.sql sqlite3 pf2.db < schema/traits.sql sqlite3 pf2.db < schema/feats.sql diff --git a/gendb.sh b/gendb.sh index edda9dd..20508a8 100755 --- a/gendb.sh +++ b/gendb.sh @@ -4,6 +4,8 @@ echo 'schema/abilityscores.sql' sqlite3 pf2.db < schema/abilityscores.sql echo 'schema/sizes.sql' sqlite3 pf2.db < schema/sizes.sql +echo 'schema/sources.sql' +sqlite3 pf2.db < schema/sources.sql echo 'schema/langs.sql' sqlite3 pf2.db < schema/langs.sql echo 'schema/traits.sql' diff --git a/schema/langs.sql b/schema/langs.sql index 2ff3fe7..768cbdf 100644 --- a/schema/langs.sql +++ b/schema/langs.sql @@ -10,6 +10,8 @@ CREATE TABLE langs ( lang TEXT NOT NULL UNIQUE, speakers TEXT NOT NULL UNIQUE, rarity_id INTEGER NOT NULL, + src_book INTEGER NOT NULL, + src_pages TEXT NOT NULL, FOREIGN KEY (rarity_id) REFERENCES langsrarity(rarity_id) ); diff --git a/schema/sources.sql b/schema/sources.sql new file mode 100644 index 0000000..e5b881b --- /dev/null +++ b/schema/sources.sql @@ -0,0 +1,12 @@ +-- -*- mode:sql sql-product:sqlite -*- + +CREATE TABLE sources ( + sources_id INTEGER PRIMARY KEY, + sources_full_name TEXT NOT NULL UNIQUE, + sources_short_name TEXT NOT NULL UNIQUE, + sources_abbrev TEXT NOT NULL UNIQUE, + sources_descr TEXT NOT NULL UNIQUE, + release_date TEXT NOT NULL, + first_party BOOLEAN NOT NULL, + ogl_copyright_block TEXT NOT NULL +);