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 "matches" (
"loser_rank" INT,
"winner_rank" INT,
"winner_rank_points" INT
);

CREATE TABLE "rankings" (
"ranking" INT
);





INSERT INTO "matches" VALUES ("10", "5", "1500");
INSERT INTO "matches" VALUES ("15", "8", "1200");
INSERT INTO "matches" VALUES ("20", "12", "900");
INSERT INTO "matches" VALUES ("25", "18", "700");
INSERT INTO "matches" VALUES ("30", "22", "500");
INSERT INTO "matches" VALUES ("5", "1", "2000");
INSERT INTO "matches" VALUES ("12", "6", "1300");
INSERT INTO "matches" VALUES ("18", "9", "1000");
INSERT INTO "matches" VALUES ("22", "14", "800");
INSERT INTO "matches" VALUES ("8", "3", "1800");
INSERT INTO "rankings" VALUES ("1");
INSERT INTO "rankings" VALUES ("3");
INSERT INTO "rankings" VALUES ("5");
INSERT INTO "rankings" VALUES ("6");
INSERT INTO "rankings" VALUES ("8");
INSERT INTO "rankings" VALUES ("9");
INSERT INTO "rankings" VALUES ("10");
INSERT INTO "rankings" VALUES ("12");
INSERT INTO "rankings" VALUES ("14");
INSERT INTO "rankings" VALUES ("15");
INSERT INTO "rankings" VALUES ("18");
INSERT INTO "rankings" VALUES ("20");
INSERT INTO "rankings" VALUES ("22");
INSERT INTO "rankings" VALUES ("25");
INSERT INTO "rankings" VALUES ("30");