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,
"chanceCreationPassingClass" TEXT,
"chanceCreationCrossingClass" TEXT,
"chanceCreationShootingClass" TEXT,
PRIMARY KEY ("id"),
FOREIGN KEY ("team_api_id") REFERENCES "Team"("team_api_id")
);



INSERT INTO "Team" VALUES ("1", "1001", "Manchester United FC", "MUN");
INSERT INTO "Team" VALUES ("2", "1002", "Real Madrid CF", "RMD");
INSERT INTO "Team" VALUES ("3", "1003", "FC Barcelona", "BAR");
INSERT INTO "Team" VALUES ("4", "1004", "Bayern Munich", "BAY");
INSERT INTO "Team" VALUES ("5", "1005", "Juventus FC", "JUV");
INSERT INTO "Team" VALUES ("6", "1006", "Paris Saint-Germain", "PSG");
INSERT INTO "Team" VALUES ("7", "1007", "Chelsea FC", "CHE");
INSERT INTO "Team" VALUES ("8", "1008", "Liverpool FC", "LIV");
INSERT INTO "Team" VALUES ("9", "1009", "Atletico Madrid", "ATM");
INSERT INTO "Team" VALUES ("10", "1010", "Borussia Dortmund", "BVB");
INSERT INTO "Team_Attributes" VALUES ("1", "1001", "Safe", "Aggressive", "Risky");
INSERT INTO "Team_Attributes" VALUES ("2", "1002", "Risky", "Safe", "Safe");
INSERT INTO "Team_Attributes" VALUES ("3", "1003", "Safe", "Safe", "Safe");
INSERT INTO "Team_Attributes" VALUES ("4", "1004", "Aggressive", "Safe", "Risky");
INSERT INTO "Team_Attributes" VALUES ("5", "1005", "Safe", "Risky", "Safe");
INSERT INTO "Team_Attributes" VALUES ("6", "1006", "Risky", "Risky", "Risky");
INSERT INTO "Team_Attributes" VALUES ("7", "1007", "Safe", "Safe", "Aggressive");
INSERT INTO "Team_Attributes" VALUES ("8", "1008", "Aggressive", "Safe", "Safe");
INSERT INTO "Team_Attributes" VALUES ("9", "1009", "Safe", "Aggressive", "Aggressive");
INSERT INTO "Team_Attributes" VALUES ("10", "1010", "Risky", "Safe", "Safe");