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 "Player" (
"id" INT,
"player_name" TEXT,
"birthday" TEXT,
PRIMARY KEY ("id")
);

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



INSERT INTO "Player" VALUES ("1", "Lionel Messi", "1987-06-24");
INSERT INTO "Player" VALUES ("2", "Cristiano Ronaldo", "1985-02-05");
INSERT INTO "Player" VALUES ("3", "Neymar Jr.", "1992-02-05");
INSERT INTO "Player" VALUES ("4", "Kylian Mbappé", "1998-12-20");
INSERT INTO "Player" VALUES ("5", "Erling Haaland", "2000-07-21");
INSERT INTO "Player" VALUES ("6", "Robert Lewandowski", "1988-08-21");
INSERT INTO "Player" VALUES ("7", "Kevin De Bruyne", "1991-06-28");
INSERT INTO "Player" VALUES ("8", "Luka Modric", "1985-09-09");
INSERT INTO "Player" VALUES ("9", "Ansu Fati", "2002-10-31");
INSERT INTO "Player" VALUES ("10", "Pedri", "2002-11-25");
INSERT INTO "Player" VALUES ("11", "Gavi", "2004-08-05");
INSERT INTO "Player" VALUES ("12", "Jude Bellingham", "2003-06-29");
INSERT INTO "Player" VALUES ("13", "Phil Foden", "2000-05-28");
INSERT INTO "Player" VALUES ("14", "Bukayo Saka", "2001-09-05");
INSERT INTO "Player" VALUES ("15", "Jamal Musiala", "2003-02-26");
INSERT INTO "Player" VALUES ("16", "Florian Wirtz", "2003-05-03");
INSERT INTO "Player" VALUES ("17", "Eduardo Camavinga", "2002-11-10");
INSERT INTO "Player" VALUES ("18", "Vinicius Jr.", "2000-07-12");
INSERT INTO "Player" VALUES ("19", "Rodrygo", "2001-01-09");
INSERT INTO "Player" VALUES ("20", "Federico Valverde", "1998-07-22");
INSERT INTO "Player_Attributes" VALUES ("1", "2023-01-01", "93");
INSERT INTO "Player_Attributes" VALUES ("2", "2023-01-01", "92");
INSERT INTO "Player_Attributes" VALUES ("3", "2023-01-01", "90");
INSERT INTO "Player_Attributes" VALUES ("4", "2023-01-01", "91");
INSERT INTO "Player_Attributes" VALUES ("5", "2023-01-01", "89");
INSERT INTO "Player_Attributes" VALUES ("6", "2023-01-01", "91");
INSERT INTO "Player_Attributes" VALUES ("7", "2023-01-01", "91");
INSERT INTO "Player_Attributes" VALUES ("8", "2023-01-01", "88");
INSERT INTO "Player_Attributes" VALUES ("9", "2023-01-01", "80");
INSERT INTO "Player_Attributes" VALUES ("10", "2023-01-01", "85");
INSERT INTO "Player_Attributes" VALUES ("11", "2023-01-01", "83");
INSERT INTO "Player_Attributes" VALUES ("12", "2023-01-01", "86");
INSERT INTO "Player_Attributes" VALUES ("13", "2023-01-01", "87");
INSERT INTO "Player_Attributes" VALUES ("14", "2023-01-01", "86");
INSERT INTO "Player_Attributes" VALUES ("15", "2023-01-01", "84");
INSERT INTO "Player_Attributes" VALUES ("16", "2023-01-01", "85");
INSERT INTO "Player_Attributes" VALUES ("17", "2023-01-01", "83");
INSERT INTO "Player_Attributes" VALUES ("18", "2023-01-01", "88");
INSERT INTO "Player_Attributes" VALUES ("19", "2023-01-01", "85");
INSERT INTO "Player_Attributes" VALUES ("20", "2023-01-01", "87");