PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE Types (id INTEGER PRIMARY KEY, Name TEXT);
INSERT INTO Types VALUES(1,'Attachment');
INSERT INTO Types VALUES(2,'Dog');
INSERT INTO Types VALUES(3,'Food');
INSERT INTO Types VALUES(4,'Movement');
INSERT INTO Types VALUES(5,'Personal');
INSERT INTO Types VALUES(6,'Sled');
INSERT INTO Types VALUES(7,'Utility');
CREATE TABLE Decks (id INTEGER PRIMARY KEY, Name TEXT);
INSERT INTO Decks VALUES(1,'Starter1');
INSERT INTO Decks VALUES(2,'Starter2');
INSERT INTO Decks VALUES(3,'Starter3');
INSERT INTO Decks VALUES(4,'Starter4');
INSERT INTO Decks VALUES(5,'Starter5');
INSERT INTO Decks VALUES(6,'Starter6');
INSERT INTO Decks VALUES(7,'Starter7');
INSERT INTO Decks VALUES(8,'Starter8');
INSERT INTO Decks VALUES(10,'Survival');
INSERT INTO Decks VALUES(11,'Race');
CREATE TABLE Effects (id INTEGER PRIMARY KEY, Name TEXT, Command TEXT);
INSERT INTO Effects VALUES(1,'Day Draw','\daydraw{#}');
INSERT INTO Effects VALUES(2,'Draw','\draw{#}');
INSERT INTO Effects VALUES(3,'Supply','\supply{#}');
INSERT INTO Effects VALUES(4,'Take','\take{#}');
INSERT INTO Effects VALUES(5,'See','\see{#}');
INSERT INTO Effects VALUES(6,'Destroy','\destroy{#}');
INSERT INTO Effects VALUES(7,'Speed','\speed{#}');
INSERT INTO Effects VALUES(8,'Move','\move{#}');
CREATE TABLE Cards (id INTEGER PRIMARY KEY, Name TEXT, Energy TEXT, Health TEXT, Risk TEXT, Flavour TEXT, Image TEXT, Type INTEGER REFERENCES Types (id));
INSERT INTO Cards VALUES(1,'A Hat',2,2,0,'I bet its a valve hat.','hat',1);
CREATE TABLE Card_Effects (Card INTEGER REFERENCES Cards (id), Effect INTEGER REFERENCES Effects (id), Amount INTEGER);
INSERT INTO Card_Effects VALUES(1,1,1);
CREATE TABLE Deck_Cards (Deck INTEGER REFERENCES Decks (id), Card INTEGER REFERENCES Cards (id), Amount INTEGER);
INSERT INTO Deck_Cards VALUES(1,1,1);
INSERT INTO Deck_Cards VALUES(2,1,1);
INSERT INTO Deck_Cards VALUES(3,1,1);
INSERT INTO Deck_Cards VALUES(4,1,1);
INSERT INTO Deck_Cards VALUES(5,1,1);
INSERT INTO Deck_Cards VALUES(6,1,1);
INSERT INTO Deck_Cards VALUES(7,1,1);
INSERT INTO Deck_Cards VALUES(8,1,1);
COMMIT;
