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

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



INSERT INTO "Player" VALUES ("1", "1001", "John Smith", "1980-05-15", "180");
INSERT INTO "Player" VALUES ("2", "1002", "Alex Johnson", "1975-12-01", "175");
INSERT INTO "Player" VALUES ("3", "1003", "Michael Brown", "1990-07-20", "182");
INSERT INTO "Player" VALUES ("4", "1004", "Chris Davis", "1985-03-10", "178");
INSERT INTO "Player" VALUES ("5", "1005", "David Wilson", "1975-12-01", "185");
INSERT INTO "Player" VALUES ("6", "1006", "James Taylor", "1995-11-30", "177");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "75", "80", "1");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "80", "85", "1");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "70", "75", "5");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "65", "70", "1");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "90", "92", "1");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "60", "65", "3");