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,
"buildUpPlaySpeed" INT,
"buildUpPlaySpeedClass" TEXT,
"buildUpPlayPositioningClass" TEXT,
PRIMARY KEY ("id"),
FOREIGN KEY ("team_api_id") REFERENCES "Team"("team_api_id")
);



INSERT INTO "Team" VALUES ("1", "10001", "Manchester United", "MUN");
INSERT INTO "Team" VALUES ("2", "10002", "Liverpool", "LIV");
INSERT INTO "Team" VALUES ("3", "10003", "Chelsea", "CHE");
INSERT INTO "Team" VALUES ("4", "10004", "Arsenal", "ARS");
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", "Newcastle United", "NEW");
INSERT INTO "Team" VALUES ("10", "10010", "Aston Villa", "AVL");
INSERT INTO "Team_Attributes" VALUES ("1", "10001", "40", "Slow", "Organised");
INSERT INTO "Team_Attributes" VALUES ("2", "10002", "70", "Fast", "Freeform");
INSERT INTO "Team_Attributes" VALUES ("3", "10003", "55", "Normal", "Organised");
INSERT INTO "Team_Attributes" VALUES ("4", "10004", "65", "Normal", "Freeform");
INSERT INTO "Team_Attributes" VALUES ("5", "10005", "45", "Slow", "Organised");
INSERT INTO "Team_Attributes" VALUES ("6", "10006", "50", "Normal", "Organised");
INSERT INTO "Team_Attributes" VALUES ("7", "10007", "75", "Fast", "Freeform");
INSERT INTO "Team_Attributes" VALUES ("8", "10008", "42", "Slow", "Organised");
INSERT INTO "Team_Attributes" VALUES ("9", "10009", "60", "Normal", "Organised");
INSERT INTO "Team_Attributes" VALUES ("10", "10010", "35", "Slow", "Organised");