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

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

CREATE TABLE "Player_Attributes" (
"id" INT,
"player_api_id" INT,
"date" TEXT,
"overall_rating" INT,
"potential" INT,
PRIMARY KEY ("id")
);



INSERT INTO "Match" VALUES ("1", "2010-01-15 00:00:00");
INSERT INTO "Match" VALUES ("2", "2010-03-20 00:00:00");
INSERT INTO "Match" VALUES ("3", "2010-07-01 00:00:00");
INSERT INTO "Match" VALUES ("4", "2011-02-10 00:00:00");
INSERT INTO "Match" VALUES ("5", "2010-11-05 00:00:00");
INSERT INTO "Match" VALUES ("6", "2012-04-22 00:00:00");
INSERT INTO "Match" VALUES ("7", "2010-09-18 00:00:00");
INSERT INTO "Match" VALUES ("8", "2010-05-12 00:00:00");
INSERT INTO "Match" VALUES ("9", "2010-08-01 00:00:00");
INSERT INTO "Match" VALUES ("10", "2010-12-31 00:00:00");
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", "Kevin De Bruyne");
INSERT INTO "Player" VALUES ("5", "Robert Lewandowski");
INSERT INTO "Player" VALUES ("6", "Kylian Mbappe");
INSERT INTO "Player" VALUES ("7", "Mohamed Salah");
INSERT INTO "Player" VALUES ("8", "Eden Hazard");
INSERT INTO "Player" VALUES ("9", "Sergio Ramos");
INSERT INTO "Player" VALUES ("10", "Virgil van Dijk");
INSERT INTO "Player_Attributes" VALUES ("1", "1", "2010-01-01 00:00:00", "92", "95");
INSERT INTO "Player_Attributes" VALUES ("2", "1", "2010-07-01 00:00:00", "93", "95");
INSERT INTO "Player_Attributes" VALUES ("3", "2", "2010-01-01 00:00:00", "90", "93");
INSERT INTO "Player_Attributes" VALUES ("4", "2", "2010-07-01 00:00:00", "91", "93");
INSERT INTO "Player_Attributes" VALUES ("5", "3", "2010-01-01 00:00:00", "80", "90");
INSERT INTO "Player_Attributes" VALUES ("6", "3", "2010-07-01 00:00:00", "82", "91");
INSERT INTO "Player_Attributes" VALUES ("7", "4", "2010-01-01 00:00:00", "78", "88");
INSERT INTO "Player_Attributes" VALUES ("8", "4", "2010-07-01 00:00:00", "80", "89");
INSERT INTO "Player_Attributes" VALUES ("9", "5", "2010-01-01 00:00:00", "85", "88");
INSERT INTO "Player_Attributes" VALUES ("10", "5", "2010-07-01 00:00:00", "86", "89");
INSERT INTO "Player_Attributes" VALUES ("11", "1", "2011-01-01 00:00:00", "94", "95");
INSERT INTO "Player_Attributes" VALUES ("12", "2", "2011-01-01 00:00:00", "92", "93");
INSERT INTO "Player_Attributes" VALUES ("13", "6", "2010-01-01 00:00:00", "75", "85");
INSERT INTO "Player_Attributes" VALUES ("14", "6", "2010-07-01 00:00:00", "77", "86");
INSERT INTO "Player_Attributes" VALUES ("15", "7", "2010-01-01 00:00:00", "70", "80");
INSERT INTO "Player_Attributes" VALUES ("16", "7", "2010-07-01 00:00:00", "72", "81");
INSERT INTO "Player_Attributes" VALUES ("17", "8", "2010-01-01 00:00:00", "88", "90");
INSERT INTO "Player_Attributes" VALUES ("18", "8", "2010-07-01 00:00:00", "89", "91");
INSERT INTO "Player_Attributes" VALUES ("19", "9", "2010-01-01 00:00:00", "87", "89");
INSERT INTO "Player_Attributes" VALUES ("20", "9", "2010-07-01 00:00:00", "88", "90");
INSERT INTO "Player_Attributes" VALUES ("21", "10", "2010-01-01 00:00:00", "79", "85");
INSERT INTO "Player_Attributes" VALUES ("22", "10", "2010-07-01 00:00:00", "81", "86");
INSERT INTO "Player_Attributes" VALUES ("23", "1", "2010-03-01 00:00:00", "92", "95");
INSERT INTO "Player_Attributes" VALUES ("24", "2", "2010-03-01 00:00:00", "90", "93");
INSERT INTO "Player_Attributes" VALUES ("25", "1", "2009-01-01 00:00:00", "90", "94");
INSERT INTO "Player_Attributes" VALUES ("26", "2", "2011-01-01 00:00:00", "92", "94");