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", "Cristiano Ronaldo", "187", "83");
INSERT INTO "Player" VALUES ("2", "Lionel Messi", "170", "72");
INSERT INTO "Player" VALUES ("3", "Zlatan Ibrahimovic", "195", "95");
INSERT INTO "Player" VALUES ("4", "Neymar Jr", "175", "68");
INSERT INTO "Player" VALUES ("5", "Paul Pogba", "191", "84");
INSERT INTO "Player" VALUES ("6", "Gareth Bale", "185", "81");
INSERT INTO "Player" VALUES ("7", "Peter Crouch", "201", "90");
INSERT INTO "Player" VALUES ("8", "Andres Iniesta", "171", "68");
INSERT INTO "Player" VALUES ("9", "Sergio Ramos", "184", "82");
INSERT INTO "Player" VALUES ("10", "Robert Lewandowski", "185", "80");
INSERT INTO "Player_Attributes" VALUES ("1", "92");
INSERT INTO "Player_Attributes" VALUES ("2", "94");
INSERT INTO "Player_Attributes" VALUES ("3", "89");
INSERT INTO "Player_Attributes" VALUES ("4", "88");
INSERT INTO "Player_Attributes" VALUES ("5", "86");
INSERT INTO "Player_Attributes" VALUES ("6", "87");
INSERT INTO "Player_Attributes" VALUES ("7", "75");
INSERT INTO "Player_Attributes" VALUES ("8", "85");
INSERT INTO "Player_Attributes" VALUES ("9", "90");
INSERT INTO "Player_Attributes" VALUES ("10", "91");
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");