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

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



INSERT INTO "Player" VALUES ("1", "1001", "Player A", "1990-01-01", "150");
INSERT INTO "Player" VALUES ("2", "1002", "Player B", "1991-02-02", "125");
INSERT INTO "Player" VALUES ("3", "1003", "Player C", "1992-03-03", "110");
INSERT INTO "Player" VALUES ("4", "1004", "Player D", "1993-04-04", "129");
INSERT INTO "Player" VALUES ("5", "1005", "Player E", "1994-05-05", "130");
INSERT INTO "Player" VALUES ("6", "1006", "Player F", "1995-06-06", "105");
INSERT INTO "Player" VALUES ("7", "1007", "Player G", "1996-07-07", "120");
INSERT INTO "Player" VALUES ("8", "1008", "Player H", "1997-08-08", "160");
INSERT INTO "Player" VALUES ("9", "1009", "Player I", "1998-09-09", "115");
INSERT INTO "Player" VALUES ("10", "1010", "Player J", "1999-10-10", "128");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "85", "right");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "78", "left");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "80", "left");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "75", "right");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "82", "left");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "70", "left");
INSERT INTO "Player_Attributes" VALUES ("7", "1007", "72", "right");
INSERT INTO "Player_Attributes" VALUES ("8", "1008", "90", "left");
INSERT INTO "Player_Attributes" VALUES ("9", "1009", "77", "left");
INSERT INTO "Player_Attributes" VALUES ("10", "1010", "79", "right");