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,
"overall_rating" INT,
"potential" INT,
"preferred_foot" TEXT,
PRIMARY KEY ("id"),
FOREIGN KEY ("player_api_id") REFERENCES "Player"("player_api_id")
);



INSERT INTO "Player" VALUES ("1", "101", "Liam Smith", "1990-05-12");
INSERT INTO "Player" VALUES ("2", "102", "Noah Johnson", "1992-11-23");
INSERT INTO "Player" VALUES ("3", "103", "Emma Brown", "1988-07-30");
INSERT INTO "Player" VALUES ("4", "104", "Olivia Davis", "1995-01-15");
INSERT INTO "Player" VALUES ("5", "105", "Ava Wilson", "1993-09-05");
INSERT INTO "Player" VALUES ("6", "106", "Sophia Moore", "1991-12-20");
INSERT INTO "Player" VALUES ("7", "107", "Mason Taylor", "1994-03-10");
INSERT INTO "Player" VALUES ("8", "108", "Isabella Anderson", "1989-08-25");
INSERT INTO "Player" VALUES ("9", "109", "Ethan Thomas", "1996-06-18");
INSERT INTO "Player" VALUES ("10", "110", "Mia Jackson", "1990-02-28");
INSERT INTO "Player_Attributes" VALUES ("1", "101", "78", "85", "right");
INSERT INTO "Player_Attributes" VALUES ("2", "102", "82", "88", "left");
INSERT INTO "Player_Attributes" VALUES ("3", "103", "75", "80", "right");
INSERT INTO "Player_Attributes" VALUES ("4", "104", "90", "92", "left");
INSERT INTO "Player_Attributes" VALUES ("5", "105", "65", "70", "right");
INSERT INTO "Player_Attributes" VALUES ("6", "106", "88", "90", "left");
INSERT INTO "Player_Attributes" VALUES ("7", "107", "70", "75", "right");
INSERT INTO "Player_Attributes" VALUES ("8", "108", "85", "87", "left");
INSERT INTO "Player_Attributes" VALUES ("9", "109", "60", "65", "right");
INSERT INTO "Player_Attributes" VALUES ("10", "110", "77", "80", "left");