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

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 "Match" VALUES ("1", "1001");
INSERT INTO "Match" VALUES ("2", "1002");
INSERT INTO "Match" VALUES ("3", "1003");
INSERT INTO "Player" VALUES ("1", "Aaron Smith", "1991-01-01");
INSERT INTO "Player" VALUES ("2", "Aaron Johnson", "1990-12-31");
INSERT INTO "Player" VALUES ("3", "Aaron", "1992-06-15");
INSERT INTO "Player" VALUES ("4", "Aaron O'Neil", "1995-03-20");
INSERT INTO "Player" VALUES ("5", "Aaron-James", "1993-11-11");
INSERT INTO "Player" VALUES ("6", "Aaronson Lee", "1994-07-07");
INSERT INTO "Player" VALUES ("7", "John Aaron", "1996-05-05");
INSERT INTO "Player" VALUES ("8", "Aaron", "1990-12-30");
INSERT INTO "Player" VALUES ("9", "Aaron", "1989-12-31");
INSERT INTO "Player" VALUES ("10", "Aaron", "1991-12-31");
INSERT INTO "Player" VALUES ("11", "Aaron", "1990-01-01");
INSERT INTO "Player" VALUES ("12", "Aaron", "1993-01-01");
INSERT INTO "Player_Attributes" VALUES ("1", "2010-05-01", "75");
INSERT INTO "Player_Attributes" VALUES ("2", "2011-06-01", "80");
INSERT INTO "Player_Attributes" VALUES ("3", "2012-07-01", "78");
INSERT INTO "Player_Attributes" VALUES ("4", "2013-08-01", "82");
INSERT INTO "Player_Attributes" VALUES ("5", "2014-09-01", "77");
INSERT INTO "Player_Attributes" VALUES ("6", "2015-10-01", "79");
INSERT INTO "Player_Attributes" VALUES ("7", "2016-11-01", "74");
INSERT INTO "Player_Attributes" VALUES ("8", "2017-12-01", "76");
INSERT INTO "Player_Attributes" VALUES ("9", "2018-01-01", "73");
INSERT INTO "Player_Attributes" VALUES ("10", "2019-02-01", "81");
INSERT INTO "Player_Attributes" VALUES ("11", "2020-03-01", "70");
INSERT INTO "Player_Attributes" VALUES ("12", "2021-04-01", "85");