PRAGMA foreign_keys = ON;

PRAGMA writable_schema = 1;
DELETE FROM sqlite_master WHERE type IN ("table", "index", "trigger");
PRAGMA writable_schema = 0;
VACUUM;

CREATE TABLE "battle" (
"id" INT,
"name" TEXT,
"date" TEXT,
"bulgarian_commander" TEXT,
"latin_commander" TEXT,
"result" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "ship" (
"id" INT,
"name" TEXT,
PRIMARY KEY ("id")
);





INSERT INTO "battle" VALUES ("1", "Battle of Adrianople", "1205-04-14", "Kaloyan", "Baldwin I", "Bulgarian victory");
INSERT INTO "battle" VALUES ("2", "Battle of Rusion", "1206-01-31", "Kaloyan", "Thierry de Loos", "Bulgarian victory");
INSERT INTO "battle" VALUES ("3", "Battle of Serres", "1206-05-01", "Kaloyan", "Henry of Flanders", "Bulgarian victory");
INSERT INTO "battle" VALUES ("4", "Siege of Varna", "1201-03-24", "Kaloyan", "No Latin Commander", "Bulgarian victory");
INSERT INTO "battle" VALUES ("5", "Battle of Philippopolis", "1208-07-31", "Boril", "Henry of Flanders", "Latin victory");
INSERT INTO "battle" VALUES ("6", "Battle of Beroia", "1207-06-01", "Kaloyan", "Boniface of Montferrat", "Bulgarian victory");
INSERT INTO "battle" VALUES ("7", "Battle of Klokotnitsa", "1230-03-09", "Ivan Asen II", "Theodore Komnenos Doukas", "Bulgarian victory");
INSERT INTO "battle" VALUES ("8", "Battle of Plovdiv", "1205-07-01", "Kaloyan", "Baldwin I", "Bulgarian victory");
INSERT INTO "battle" VALUES ("9", "Battle of Didymoteicho", "1207-04-01", "Kaloyan", "Henry of Flanders", "Bulgarian victory");
INSERT INTO "battle" VALUES ("10", "Battle of Stara Zagora", "1207-05-01", "Kaloyan", "Henry of Flanders", "Bulgarian victory");
INSERT INTO "ship" VALUES ("1", "Santa Maria");
INSERT INTO "ship" VALUES ("2", "Pinta");
INSERT INTO "ship" VALUES ("3", "Nina");
INSERT INTO "ship" VALUES ("4", "Mayflower");
INSERT INTO "ship" VALUES ("5", "Golden Hind");
INSERT INTO "ship" VALUES ("6", "HMS Victory");
INSERT INTO "ship" VALUES ("7", "USS Constitution");
INSERT INTO "ship" VALUES ("8", "Bismarck");
INSERT INTO "ship" VALUES ("9", "Yamato");
INSERT INTO "ship" VALUES ("10", "Titanic");