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

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



INSERT INTO "Player" VALUES ("1", "1001", "180", "90");
INSERT INTO "Player" VALUES ("2", "1002", "175", "85");
INSERT INTO "Player" VALUES ("3", "1003", "190", "95");
INSERT INTO "Player" VALUES ("4", "1004", "185", "92");
INSERT INTO "Player" VALUES ("5", "1005", "178", "88");
INSERT INTO "Player" VALUES ("6", "1006", "182", "91");
INSERT INTO "Player" VALUES ("7", "1007", "177", "87");
INSERT INTO "Player" VALUES ("8", "1008", "183", "93");
INSERT INTO "Player" VALUES ("9", "1009", "176", "86");
INSERT INTO "Player" VALUES ("10", "1010", "181", "89");
INSERT INTO "Player" VALUES ("11", "1011", "184", "94");
INSERT INTO "Player" VALUES ("12", "1012", "179", "84");
INSERT INTO "Player" VALUES ("13", "1013", "174", "83");
INSERT INTO "Player" VALUES ("14", "1014", "188", "96");
INSERT INTO "Player" VALUES ("15", "1015", "170", "80");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "75");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "70");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "80");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "78");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "72");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "77");
INSERT INTO "Player_Attributes" VALUES ("7", "1007", "69");
INSERT INTO "Player_Attributes" VALUES ("8", "1008", "79");
INSERT INTO "Player_Attributes" VALUES ("9", "1009", "68");
INSERT INTO "Player_Attributes" VALUES ("10", "1010", "74");
INSERT INTO "Player_Attributes" VALUES ("11", "1011", "81");
INSERT INTO "Player_Attributes" VALUES ("12", "1012", "71");
INSERT INTO "Player_Attributes" VALUES ("13", "1013", "67");
INSERT INTO "Player_Attributes" VALUES ("14", "1014", "82");
INSERT INTO "Player_Attributes" VALUES ("15", "1015", "65");