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



INSERT INTO "Player" VALUES ("1", "1001", "John Smith", "182", "75");
INSERT INTO "Player" VALUES ("2", "1002", "Alex Johnson", "179", "80");
INSERT INTO "Player" VALUES ("3", "1003", "Michael Brown", "185", "78");
INSERT INTO "Player" VALUES ("4", "1004", "Chris Davis", "181", "70");
INSERT INTO "Player" VALUES ("5", "1005", "David Wilson", "177", "72");
INSERT INTO "Player" VALUES ("6", "1006", "James Taylor", "190", "85");
INSERT INTO "Player" VALUES ("7", "1007", "Robert Moore", "183", "77");
INSERT INTO "Player" VALUES ("8", "1008", "Daniel Anderson", "180", "74");
INSERT INTO "Player" VALUES ("9", "1009", "Paul Thomas", "184", "79");
INSERT INTO "Player" VALUES ("10", "1010", "Mark Jackson", "178", "76");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "72", "80");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "75", "85");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "68", "78");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "71", "82");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "69", "77");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "90", "88");
INSERT INTO "Player_Attributes" VALUES ("7", "1007", "65", "79");
INSERT INTO "Player_Attributes" VALUES ("8", "1008", "73", "81");
INSERT INTO "Player_Attributes" VALUES ("9", "1009", "70", "75");
INSERT INTO "Player_Attributes" VALUES ("10", "1010", "74", "80");