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