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

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



INSERT INTO "Player" VALUES ("1", "1001", "1990-05-21", "180", "75");
INSERT INTO "Player" VALUES ("2", "1002", "1988-11-10", "175", "70");
INSERT INTO "Player" VALUES ("3", "1003", "1995-07-15", "185", "80");
INSERT INTO "Player" VALUES ("4", "1004", "1992-03-30", "178", "72");
INSERT INTO "Player" VALUES ("5", "1005", "1991-12-01", "182", "77");
INSERT INTO "Player" VALUES ("6", "1006", "1989-08-25", "176", "74");
INSERT INTO "Player" VALUES ("7", "1007", "1993-01-05", "179", "73");
INSERT INTO "Player" VALUES ("8", "1008", "1994-09-12", "181", "76");
INSERT INTO "Player" VALUES ("9", "1009", "1990-06-18", "177", "71");
INSERT INTO "Player" VALUES ("10", "1010", "1996-04-22", "183", "78");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "85", "90");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "88", "91");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "92", "93");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "87", "89");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "90", "92");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "92", "94");
INSERT INTO "Player_Attributes" VALUES ("7", "1007", "86", "88");
INSERT INTO "Player_Attributes" VALUES ("8", "1008", "89", "90");
INSERT INTO "Player_Attributes" VALUES ("9", "1009", "84", "87");
INSERT INTO "Player_Attributes" VALUES ("10", "1010", "92", "95");