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



INSERT INTO "Player" VALUES ("1", "12345", "Lionel Messi", "170", "72");
INSERT INTO "Player" VALUES ("2", "67890", "Cristiano Ronaldo", "187", "83");
INSERT INTO "Player" VALUES ("3", "11223", "Neymar Jr.", "175", "68");
INSERT INTO "Player" VALUES ("4", "44556", "Antoine Griezmann", "176", "73");
INSERT INTO "Player" VALUES ("5", "77889", "Eden Hazard", "173", "74");
INSERT INTO "Player" VALUES ("6", "99001", "Sergio Aguero", "172", "70");
INSERT INTO "Player" VALUES ("7", "22334", "Xherdan Shaqiri", "169", "72");
INSERT INTO "Player" VALUES ("8", "55667", "Lorenzo Insigne", "163", "59");
INSERT INTO "Player" VALUES ("9", "88990", "Marco Verratti", "165", "60");
INSERT INTO "Player" VALUES ("10", "33445", "Jordi Alba", "170", "68");
INSERT INTO "Player_Attributes" VALUES ("1", "94", "95");
INSERT INTO "Player_Attributes" VALUES ("2", "93", "93");
INSERT INTO "Player_Attributes" VALUES ("3", "92", "94");
INSERT INTO "Player_Attributes" VALUES ("4", "89", "90");
INSERT INTO "Player_Attributes" VALUES ("5", "91", "91");
INSERT INTO "Player_Attributes" VALUES ("6", "89", "89");
INSERT INTO "Player_Attributes" VALUES ("7", "82", "83");
INSERT INTO "Player_Attributes" VALUES ("8", "87", "88");
INSERT INTO "Player_Attributes" VALUES ("9", "86", "87");
INSERT INTO "Player_Attributes" VALUES ("10", "85", "85");