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



INSERT INTO "Team" VALUES ("1", "10000", "KSV Cercle Brugge", "CER");
INSERT INTO "Team" VALUES ("2", "10001", "RSC Anderlecht", "AND");
INSERT INTO "Team" VALUES ("3", "10002", "Club Brugge KV", "BRU");
INSERT INTO "Team" VALUES ("4", "10003", "Standard Liège", "STL");
INSERT INTO "Team" VALUES ("5", "10004", "KAA Gent", "GEN");
INSERT INTO "Team" VALUES ("6", "10005", "Genk", "GNK");
INSERT INTO "Team_Attributes" VALUES ("1", "10000", "Slow", "Little", "Long");
INSERT INTO "Team_Attributes" VALUES ("2", "10001", "Fast", "Normal", "Short");
INSERT INTO "Team_Attributes" VALUES ("3", "10002", "Balanced", "Normal", "Mixed");
INSERT INTO "Team_Attributes" VALUES ("4", "10003", "Fast", "Normal", "Short");
INSERT INTO "Team_Attributes" VALUES ("5", "10004", "Balanced", "Normal", "Mixed");
INSERT INTO "Team_Attributes" VALUES ("6", "10005", "Slow", "Normal", "Long");