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", "Stalemate");
INSERT INTO "battle" VALUES ("4", "Victory");
INSERT INTO "battle" VALUES ("5", "Draw");
INSERT INTO "battle" VALUES ("6", "Defeat");
INSERT INTO "battle" VALUES ("7", "Victory");
INSERT INTO "battle" VALUES ("8", "Draw");
INSERT INTO "battle" VALUES ("9", "Stalemate");
INSERT INTO "battle" VALUES ("10", "Victory");
INSERT INTO "death" VALUES ("1", "150");
INSERT INTO "death" VALUES ("2", "200");
INSERT INTO "death" VALUES ("3", "0");
INSERT INTO "death" VALUES ("4", "75");
INSERT INTO "death" VALUES ("5", "50");
INSERT INTO "death" VALUES ("6", "180");
INSERT INTO "death" VALUES ("7", "120");
INSERT INTO "death" VALUES ("8", "60");
INSERT INTO "death" VALUES ("9", "0");
INSERT INTO "death" VALUES ("10", "90");
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", "HMS Dreadnought");
INSERT INTO "ship" VALUES ("6", "USS Enterprise");
INSERT INTO "ship" VALUES ("7", "HMS Hood");
INSERT INTO "ship" VALUES ("8", "USS Arizona");
INSERT INTO "ship" VALUES ("9", "KMS Tirpitz");
INSERT INTO "ship" VALUES ("10", "IJN Musashi");