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

CREATE TABLE "Player_Attributes" (
"id" INT,
"player_api_id" INT,
"date" TEXT,
PRIMARY KEY ("id"),
FOREIGN KEY ("player_api_id") REFERENCES "Player"("player_api_id")
);



INSERT INTO "Player" VALUES ("1", "1001", "John Smith", "1989-12-31");
INSERT INTO "Player" VALUES ("2", "1002", "Alex Johnson", "1990-01-01");
INSERT INTO "Player" VALUES ("3", "1003", "Michael Brown", "1990-06-15");
INSERT INTO "Player" VALUES ("4", "1004", "Chris Davis", "1991-03-22");
INSERT INTO "Player" VALUES ("5", "1005", "David Wilson", "1988-07-10");
INSERT INTO "Player" VALUES ("6", "1006", "James Taylor", "1992-11-05");
INSERT INTO "Player" VALUES ("7", "1007", "Robert Moore", "1990-12-31");
INSERT INTO "Player" VALUES ("8", "1008", "Daniel Anderson", "1987-05-30");
INSERT INTO "Player" VALUES ("9", "1009", "Paul Thomas", "1993-08-19");
INSERT INTO "Player" VALUES ("10", "1010", "Mark Jackson", "1990-01-02");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "2010-05-01");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "2011-06-15");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "2012-07-20");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "2013-08-25");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "2014-09-30");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "2015-10-05");
INSERT INTO "Player_Attributes" VALUES ("7", "1007", "2016-11-10");
INSERT INTO "Player_Attributes" VALUES ("8", "1008", "2017-12-15");
INSERT INTO "Player_Attributes" VALUES ("9", "1009", "2018-01-20");
INSERT INTO "Player_Attributes" VALUES ("10", "1010", "2019-02-25");