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



INSERT INTO "Player" VALUES ("1", "1001", "Liam O'Connor", "1990-05-12", "180");
INSERT INTO "Player" VALUES ("2", "1002", "Marco Rossi", "1988-11-23", "190");
INSERT INTO "Player" VALUES ("3", "1003", "Johan Svensson", "1992-07-30", "195");
INSERT INTO "Player" VALUES ("4", "1004", "Alexei Ivanov", "1985-03-15", "195");
INSERT INTO "Player" VALUES ("5", "1005", "Pedro Alvarez", "1995-01-10", "185");
INSERT INTO "Player" VALUES ("6", "1006", "Nikolai Petrov", "1991-09-05", "178");
INSERT INTO "Player" VALUES ("7", "1007", "David Müller", "1989-12-20", "192");
INSERT INTO "Player" VALUES ("8", "1008", "Olivier Dubois", "1993-04-25", "195");
INSERT INTO "Player_Attributes" VALUES ("1", "1001", "75");
INSERT INTO "Player_Attributes" VALUES ("2", "1002", "80");
INSERT INTO "Player_Attributes" VALUES ("3", "1003", "82");
INSERT INTO "Player_Attributes" VALUES ("4", "1004", "78");
INSERT INTO "Player_Attributes" VALUES ("5", "1005", "77");
INSERT INTO "Player_Attributes" VALUES ("6", "1006", "74");
INSERT INTO "Player_Attributes" VALUES ("7", "1007", "79");
INSERT INTO "Player_Attributes" VALUES ("8", "1008", "81");