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_short_name" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "Team_Attributes" (
"id" INT,
"team_api_id" INT,
"buildUpPlayPassingClass" TEXT,
"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", "Eagles");
INSERT INTO "Team" VALUES ("2", "1002", "Tigers");
INSERT INTO "Team" VALUES ("3", "1003", "Wolves");
INSERT INTO "Team" VALUES ("4", "1004", "Lions");
INSERT INTO "Team" VALUES ("5", "1005", "Sharks");
INSERT INTO "Team" VALUES ("6", "1006", "Bulls");
INSERT INTO "Team" VALUES ("7", "1007", "Hawks");
INSERT INTO "Team" VALUES ("8", "1008", "Panthers");
INSERT INTO "Team_Attributes" VALUES ("1", "1001", "Short", "Risky", "Moderate", "Clinical");
INSERT INTO "Team_Attributes" VALUES ("2", "1002", "Long", "Safe", "Risky", "Powerful");
INSERT INTO "Team_Attributes" VALUES ("3", "1003", "Balanced", "Risky", "Safe", "Accurate");
INSERT INTO "Team_Attributes" VALUES ("4", "1004", "Short", "Safe", "Safe", "Clinical");
INSERT INTO "Team_Attributes" VALUES ("5", "1005", "Long", "Risky", "Risky", "Powerful");
INSERT INTO "Team_Attributes" VALUES ("6", "1006", "Balanced", "Safe", "Moderate", "Accurate");
INSERT INTO "Team_Attributes" VALUES ("7", "1007", "Short", "Risky", "Moderate", "Clinical");
INSERT INTO "Team_Attributes" VALUES ("8", "1008", "Long", "Safe", "Risky", "Powerful");