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

CREATE TABLE "Player_Attributes" (
"id" INT,
"player_api_id" INT,
"overall_rating" INT,
"potential" INT,
"preferred_foot" TEXT,
"attacking_work_rate" TEXT,
PRIMARY KEY ("id"),
FOREIGN KEY ("player_api_id") REFERENCES "Player"("player_api_id")
);



INSERT INTO "Player" VALUES ("1", "1001", "1990-05-12");
INSERT INTO "Player" VALUES ("2", "1002", "1988-11-23");
INSERT INTO "Player" VALUES ("3", "1003", "1995-07-30");
INSERT INTO "Player" VALUES ("4", "1004", "1992-01-15");
INSERT INTO "Player" VALUES ("5", "1005", "1993-09-05");
INSERT INTO "Player" VALUES ("6", "1006", "1991-12-20");
INSERT INTO "Player" VALUES ("7", "1007", "1989-03-10");
INSERT INTO "Player" VALUES ("8", "1008", "1994-06-25");
INSERT INTO "Player" VALUES ("9", "1009", "1996-08-14");
INSERT INTO "Player" VALUES ("10", "1010", "1990-10-02");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "75", "80", "left", "low");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "82", "85", "right", "high");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "68", "75", "left", "high");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "90", "92", "left", "low");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "77", "79", "right", "medium");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "65", "70", "left", "low");
INSERT INTO "Player_Attributes" VALUES ("7", "1007", "80", "83", "right", "low");
INSERT INTO "Player_Attributes" VALUES ("8", "1008", "72", "78", "left", "medium");
INSERT INTO "Player_Attributes" VALUES ("9", "1009", "85", "88", "left", "low");
INSERT INTO "Player_Attributes" VALUES ("10", "1010", "60", "65", "right", "high");