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

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



INSERT INTO "Player" VALUES ("1", "1001", "Lionel Messi", "170", "72");
INSERT INTO "Player" VALUES ("2", "1002", "Cristiano Ronaldo", "187", "83");
INSERT INTO "Player" VALUES ("3", "1003", "Neymar Jr", "175", "68");
INSERT INTO "Player" VALUES ("4", "1004", "Kylian Mbappe", "178", "73");
INSERT INTO "Player" VALUES ("5", "1005", "Zlatan Ibrahimovic", "195", "95");
INSERT INTO "Player" VALUES ("6", "1006", "Andres Iniesta", "171", "68");
INSERT INTO "Player" VALUES ("7", "1007", "Paul Pogba", "191", "84");
INSERT INTO "Player" VALUES ("8", "1008", "Sergio Ramos", "184", "82");
INSERT INTO "Player" VALUES ("9", "1009", "Luka Modric", "172", "66");
INSERT INTO "Player" VALUES ("10", "1010", "Robert Lewandowski", "185", "80");
INSERT INTO "Player" VALUES ("11", "1011", "Eden Hazard", "175", "74");
INSERT INTO "Player" VALUES ("12", "1012", "Kevin De Bruyne", "181", "76");
INSERT INTO "Player" VALUES ("13", "1013", "Virgil van Dijk", "193", "92");
INSERT INTO "Player" VALUES ("14", "1014", "Sadio Mane", "175", "69");
INSERT INTO "Player" VALUES ("15", "1015", "Mohamed Salah", "175", "71");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "94", "85", "75");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "93", "88", "90");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "91", "82", "70");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "90", "90", "85");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "89", "70", "95");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "88", "78", "65");
INSERT INTO "Player_Attributes" VALUES ("7", "1007", "87", "83", "88");
INSERT INTO "Player_Attributes" VALUES ("8", "1008", "86", "79", "81");
INSERT INTO "Player_Attributes" VALUES ("9", "1009", "85", "77", "60");
INSERT INTO "Player_Attributes" VALUES ("10", "1010", "84", "84", "82");
INSERT INTO "Player_Attributes" VALUES ("11", "1011", "83", "75", "70");
INSERT INTO "Player_Attributes" VALUES ("12", "1012", "82", "80", "79");
INSERT INTO "Player_Attributes" VALUES ("13", "1013", "81", "86", "91");
INSERT INTO "Player_Attributes" VALUES ("14", "1014", "80", "81", "78");
INSERT INTO "Player_Attributes" VALUES ("15", "1015", "79", "79", "77");