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,
"preferred_foot" TEXT,
PRIMARY KEY ("id"),
FOREIGN KEY ("player_api_id") REFERENCES "Player"("player_api_id")
);



INSERT INTO "Player" VALUES ("1", "101", "Abdou Diallo", "185", "75");
INSERT INTO "Player" VALUES ("2", "102", "Marco Reus", "180", "70");
INSERT INTO "Player" VALUES ("3", "103", "Lionel Messi", "170", "68");
INSERT INTO "Player" VALUES ("4", "104", "Cristiano Ronaldo", "187", "83");
INSERT INTO "Player" VALUES ("5", "105", "Neymar Jr", "175", "68");
INSERT INTO "Player" VALUES ("6", "106", "Kylian Mbappe", "178", "73");
INSERT INTO "Player" VALUES ("7", "107", "Sergio Ramos", "184", "82");
INSERT INTO "Player" VALUES ("8", "108", "Paul Pogba", "191", "84");
INSERT INTO "Player" VALUES ("9", "109", "Kevin De Bruyne", "181", "70");
INSERT INTO "Player" VALUES ("10", "110", "Robert Lewandowski", "185", "80");
INSERT INTO "Player_Attributes" VALUES ("1", "101", "78", "Right");
INSERT INTO "Player_Attributes" VALUES ("2", "102", "85", "Left");
INSERT INTO "Player_Attributes" VALUES ("3", "103", "93", "Left");
INSERT INTO "Player_Attributes" VALUES ("4", "104", "92", "Right");
INSERT INTO "Player_Attributes" VALUES ("5", "105", "91", "Right");
INSERT INTO "Player_Attributes" VALUES ("6", "106", "88", "Right");
INSERT INTO "Player_Attributes" VALUES ("7", "107", "86", "Right");
INSERT INTO "Player_Attributes" VALUES ("8", "108", "84", "Right");
INSERT INTO "Player_Attributes" VALUES ("9", "109", "89", "Right");
INSERT INTO "Player_Attributes" VALUES ("10", "110", "90", "Right");