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 "Match" (
"id" INT,
"home_player_1" INT,
PRIMARY KEY ("id")
);

CREATE TABLE "Player" (
"id" INT,
"player_name" TEXT,
"height" INT,
"weight" INT,
PRIMARY KEY ("id")
);

CREATE TABLE "Player_Attributes" (
"id" INT,
"overall_rating" INT,
PRIMARY KEY ("id")
);



INSERT INTO "Player" VALUES ("1", "Peter Crouch", "201", "85");
INSERT INTO "Player" VALUES ("2", "Zlatan Ibrahimovic", "195", "95");
INSERT INTO "Player" VALUES ("3", "Lionel Messi", "170", "72");
INSERT INTO "Player" VALUES ("4", "Cristiano Ronaldo", "187", "83");
INSERT INTO "Player" VALUES ("5", "Thibaut Courtois", "199", "91");
INSERT INTO "Player" VALUES ("6", "Harry Maguire", "194", "100");
INSERT INTO "Player" VALUES ("7", "Virgil van Dijk", "193", "92");
INSERT INTO "Player" VALUES ("8", "Jan Koller", "202", "100");
INSERT INTO "Player" VALUES ("9", "Nikola Zigic", "202", "96");
INSERT INTO "Player" VALUES ("10", "Costel Pantilimon", "203", "96");
INSERT INTO "Player" VALUES ("11", "Lacina Traore", "203", "93");
INSERT INTO "Player" VALUES ("12", "Kristof Van Hout", "208", "110");
INSERT INTO "Match" VALUES ("1", "1");
INSERT INTO "Match" VALUES ("2", "2");
INSERT INTO "Match" VALUES ("3", "3");
INSERT INTO "Match" VALUES ("4", "4");
INSERT INTO "Match" VALUES ("5", "5");
INSERT INTO "Match" VALUES ("6", "6");
INSERT INTO "Match" VALUES ("7", "7");
INSERT INTO "Match" VALUES ("8", "8");
INSERT INTO "Match" VALUES ("9", "9");
INSERT INTO "Match" VALUES ("10", "10");
INSERT INTO "Match" VALUES ("11", "11");
INSERT INTO "Match" VALUES ("12", "12");
INSERT INTO "Player_Attributes" VALUES ("1", "78");
INSERT INTO "Player_Attributes" VALUES ("2", "89");
INSERT INTO "Player_Attributes" VALUES ("3", "94");
INSERT INTO "Player_Attributes" VALUES ("4", "92");
INSERT INTO "Player_Attributes" VALUES ("5", "90");
INSERT INTO "Player_Attributes" VALUES ("6", "82");
INSERT INTO "Player_Attributes" VALUES ("7", "91");
INSERT INTO "Player_Attributes" VALUES ("8", "75");
INSERT INTO "Player_Attributes" VALUES ("9", "73");
INSERT INTO "Player_Attributes" VALUES ("10", "76");
INSERT INTO "Player_Attributes" VALUES ("11", "70");
INSERT INTO "Player_Attributes" VALUES ("12", "65");