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



INSERT INTO "Player" VALUES ("1", "1001", "John Smith", "1990-05-12");
INSERT INTO "Player" VALUES ("2", "1002", "Alex Johnson", "1988-11-23");
INSERT INTO "Player" VALUES ("3", "1003", "Michael Brown", "1992-07-30");
INSERT INTO "Player" VALUES ("4", "1004", "David Wilson", "1991-02-14");
INSERT INTO "Player" VALUES ("5", "1005", "Chris Lee", "1989-09-05");
INSERT INTO "Player" VALUES ("6", "1006", "James Taylor", "1993-12-01");
INSERT INTO "Player" VALUES ("7", "1007", "Robert Davis", "1990-03-22");
INSERT INTO "Player" VALUES ("8", "1008", "Daniel Martinez", "1994-08-17");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "85", "high");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "80", "medium");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "78", "high");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "82", "low");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "75", "medium");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "88", "high");
INSERT INTO "Player_Attributes" VALUES ("7", "1007", "70", "low");
INSERT INTO "Player_Attributes" VALUES ("8", "1008", "77", "medium");