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", "Alice Smith", "1990-12-31");
INSERT INTO "Player" VALUES ("2", "1002", "Bob Jones", "1991-01-01");
INSERT INTO "Player" VALUES ("3", "1003", "Charlie Brown", "1989-06-15");
INSERT INTO "Player" VALUES ("4", "1004", "Diana Prince", "1992-03-22");
INSERT INTO "Player" VALUES ("5", "1005", "Evan Davis", "1990-01-01");
INSERT INTO "Player" VALUES ("6", "1006", "Fiona Gallagher", "1993-11-30");
INSERT INTO "Player" VALUES ("7", "1007", "George Hall", "1988-07-07");
INSERT INTO "Player" VALUES ("8", "1008", "Hannah Lee", "1991-12-25");
INSERT INTO "Player" VALUES ("9", "1009", "Ian Moore", "1990-12-30");
INSERT INTO "Player" VALUES ("10", "1010", "Jane King", "1994-05-14");