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,
"chanceCreationPassing" INT,
"chanceCreationPassingClass" TEXT,
"chanceCreationCrossing" INT,
"chanceCreationShooting" INT,
PRIMARY KEY ("id"),
FOREIGN KEY ("team_api_id") REFERENCES "Team"("team_api_id")
);



INSERT INTO "Team" VALUES ("1", "1001", "Ajax", "AJA");
INSERT INTO "Team" VALUES ("2", "1002", "PSV Eindhoven", "PSV");
INSERT INTO "Team" VALUES ("3", "1003", "Feyenoord", "FEY");
INSERT INTO "Team" VALUES ("4", "1004", "AZ Alkmaar", "AZ");
INSERT INTO "Team" VALUES ("5", "1005", "FC Utrecht", "UTR");
INSERT INTO "Team_Attributes" VALUES ("1", "1001", "85", "High", "70", "75");
INSERT INTO "Team_Attributes" VALUES ("2", "1001", "90", "Very High", "65", "80");
INSERT INTO "Team_Attributes" VALUES ("3", "1001", "88", "High", "68", "78");
INSERT INTO "Team_Attributes" VALUES ("4", "1002", "80", "Medium", "60", "70");
INSERT INTO "Team_Attributes" VALUES ("5", "1002", "82", "Medium", "62", "72");
INSERT INTO "Team_Attributes" VALUES ("6", "1003", "75", "Medium", "55", "65");
INSERT INTO "Team_Attributes" VALUES ("7", "1004", "78", "Medium", "58", "68");
INSERT INTO "Team_Attributes" VALUES ("8", "1005", "70", "Low", "50", "60");
INSERT INTO "Team_Attributes" VALUES ("9", "1001", "90", "Very High", "67", "79");