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 "Team" (
"id" INT,
"team_api_id" INT UNIQUE,
"team_long_name" TEXT,
"team_short_name" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "Team_Attributes" (
"id" INT,
"team_api_id" INT,
"buildUpPlayPassing" INT,
"buildUpPlayPassingClass" TEXT,
"chanceCreationPassing" INT,
PRIMARY KEY ("id"),
FOREIGN KEY ("team_api_id") REFERENCES "Team"("team_api_id")
);



INSERT INTO "Team" VALUES ("1", "10001", "Arsenal", "ARS");
INSERT INTO "Team" VALUES ("2", "10002", "Chelsea", "CHE");
INSERT INTO "Team" VALUES ("3", "10003", "Manchester United", "MUN");
INSERT INTO "Team" VALUES ("4", "10004", "Liverpool", "LIV");
INSERT INTO "Team" VALUES ("5", "10005", "Tottenham Hotspur", "TOT");
INSERT INTO "Team" VALUES ("6", "10006", "Everton", "EVE");
INSERT INTO "Team" VALUES ("7", "10007", "Leicester City", "LEI");
INSERT INTO "Team" VALUES ("8", "10008", "West Ham United", "WHU");
INSERT INTO "Team" VALUES ("9", "10009", "Southampton", "SOU");
INSERT INTO "Team" VALUES ("10", "10010", "Crystal Palace", "CRY");
INSERT INTO "Team_Attributes" VALUES ("1", "10001", "75", "Short", "60");
INSERT INTO "Team_Attributes" VALUES ("2", "10002", "68", "Mixed", "72");
INSERT INTO "Team_Attributes" VALUES ("3", "10003", "80", "Short", "65");
INSERT INTO "Team_Attributes" VALUES ("4", "10004", "72", "Short", "70");
INSERT INTO "Team_Attributes" VALUES ("5", "10005", "65", "Mixed", "75");
INSERT INTO "Team_Attributes" VALUES ("6", "10006", "78", "Short", "68");
INSERT INTO "Team_Attributes" VALUES ("7", "10007", "55", "Long", "50");
INSERT INTO "Team_Attributes" VALUES ("8", "10008", "71", "Short", "62");
INSERT INTO "Team_Attributes" VALUES ("9", "10009", "60", "Mixed", "58");
INSERT INTO "Team_Attributes" VALUES ("10", "10010", "50", "Long", "45");