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 UNIQUE,
"result" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "death" (
"id" INT,
"killed" INT,
PRIMARY KEY ("id")
);

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





INSERT INTO "battle" VALUES ("1", "Victory");
INSERT INTO "battle" VALUES ("2", "Defeat");
INSERT INTO "battle" VALUES ("3", "Draw");
INSERT INTO "battle" VALUES ("4", "Victory");
INSERT INTO "battle" VALUES ("5", "Unknown");
INSERT INTO "battle" VALUES ("6", "");
INSERT INTO "battle" VALUES ("7", "NULL");
INSERT INTO "battle" VALUES ("8", "Stalemate");
INSERT INTO "battle" VALUES ("9", "Victory");
INSERT INTO "battle" VALUES ("10", "Defeat");
INSERT INTO "death" VALUES ("1", "10");
INSERT INTO "death" VALUES ("2", "0");
INSERT INTO "death" VALUES ("3", "5");
INSERT INTO "death" VALUES ("4", "3");
INSERT INTO "death" VALUES ("5", "7");
INSERT INTO "death" VALUES ("6", "0");
INSERT INTO "death" VALUES ("7", "2");
INSERT INTO "death" VALUES ("8", "1");
INSERT INTO "death" VALUES ("9", "4");
INSERT INTO "death" VALUES ("10", "6");
INSERT INTO "ship" VALUES ("1", "HMS Victory");
INSERT INTO "ship" VALUES ("2", "USS Constitution");
INSERT INTO "ship" VALUES ("3", "Bismarck");
INSERT INTO "ship" VALUES ("4", "Yamato");
INSERT INTO "ship" VALUES ("5", "Enterprise");
INSERT INTO "ship" VALUES ("6", "HMS Dreadnought");
INSERT INTO "ship" VALUES ("7", "USS Arizona");
INSERT INTO "ship" VALUES ("8", "HMS Hood");
INSERT INTO "ship" VALUES ("9", "USS Missouri");
INSERT INTO "ship" VALUES ("10", "KMS Tirpitz");