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

CREATE TABLE "Player_Attributes" (
"id" INT,
"player_api_id" INT,
"preferred_foot" TEXT,
"attacking_work_rate" TEXT,
"defensive_work_rate" TEXT,
PRIMARY KEY ("id")
);



INSERT INTO "Player" VALUES ("1", "Lionel Messi");
INSERT INTO "Player" VALUES ("2", "Cristiano Ronaldo");
INSERT INTO "Player" VALUES ("3", "Neymar Jr.");
INSERT INTO "Player" VALUES ("4", "Sergio Ramos");
INSERT INTO "Player" VALUES ("5", "Luka Modric");
INSERT INTO "Player" VALUES ("6", "Toni Kroos");
INSERT INTO "Player" VALUES ("7", "Virgil van Dijk");
INSERT INTO "Player" VALUES ("8", "Kevin De Bruyne");
INSERT INTO "Player" VALUES ("9", "Robert Lewandowski");
INSERT INTO "Player" VALUES ("10", "Manuel Neuer");
INSERT INTO "Player" VALUES ("11", "David Alaba");
INSERT INTO "Player" VALUES ("12", "Marcelo");
INSERT INTO "Player" VALUES ("13", "Antoine Griezmann");
INSERT INTO "Player" VALUES ("14", "Eden Hazard");
INSERT INTO "Player" VALUES ("15", "Kylian Mbappé");
INSERT INTO "Player_Attributes" VALUES ("1", "1", "left", "low", "medium");
INSERT INTO "Player_Attributes" VALUES ("2", "2", "right", "high", "low");
INSERT INTO "Player_Attributes" VALUES ("3", "3", "right", "high", "medium");
INSERT INTO "Player_Attributes" VALUES ("4", "4", "right", "medium", "high");
INSERT INTO "Player_Attributes" VALUES ("5", "5", "right", "medium", "high");
INSERT INTO "Player_Attributes" VALUES ("6", "6", "right", "low", "medium");
INSERT INTO "Player_Attributes" VALUES ("7", "7", "right", "low", "high");
INSERT INTO "Player_Attributes" VALUES ("8", "8", "right", "high", "medium");
INSERT INTO "Player_Attributes" VALUES ("9", "9", "right", "high", "low");
INSERT INTO "Player_Attributes" VALUES ("10", "10", "right", "low", "low");
INSERT INTO "Player_Attributes" VALUES ("11", "11", "left", "low", "high");
INSERT INTO "Player_Attributes" VALUES ("12", "12", "left", "high", "medium");
INSERT INTO "Player_Attributes" VALUES ("13", "13", "left", "medium", "low");
INSERT INTO "Player_Attributes" VALUES ("14", "14", "right", "high", "low");
INSERT INTO "Player_Attributes" VALUES ("15", "15", "right", "high", "low");
INSERT INTO "Player_Attributes" VALUES ("16", "16", "left", "low", "low");
INSERT INTO "Player_Attributes" VALUES ("17", "17", "left", "medium", "medium");
INSERT INTO "Player_Attributes" VALUES ("18", "18", "left", "low", "medium");
INSERT INTO "Player_Attributes" VALUES ("19", "19", "left", "low", "low");
INSERT INTO "Player_Attributes" VALUES ("20", "20", "left", "high", "medium");
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");