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



INSERT INTO "Team" VALUES ("1", "1001", "501", "Manchester United FC", "Man Utd");
INSERT INTO "Team" VALUES ("2", "1002", "502", "Real Madrid CF", "Real Madrid");
INSERT INTO "Team" VALUES ("3", "1003", "503", "FC Barcelona", "Barcelona");
INSERT INTO "Team" VALUES ("4", "1004", "504", "Bayern Munich", "Bayern");
INSERT INTO "Team" VALUES ("5", "1005", "505", "Juventus FC", "Juventus");
INSERT INTO "Team" VALUES ("6", "1006", "506", "Atletico Madrid", "Atletico");
INSERT INTO "Team" VALUES ("7", "1007", "507", "Paris Saint-Germain", "PSG");
INSERT INTO "Team" VALUES ("8", "1008", "508", "Liverpool FC", "Liverpool");
INSERT INTO "Team" VALUES ("9", "1009", "509", "AC Milan", "AC Milan");
INSERT INTO "Team" VALUES ("10", "1010", "510", "Chelsea FC", "Chelsea");
INSERT INTO "Team_Attributes" VALUES ("1", "1001", "Fast", "Short");
INSERT INTO "Team_Attributes" VALUES ("2", "1002", "Slow", "Long");
INSERT INTO "Team_Attributes" VALUES ("3", "1003", "Medium", "Medium");
INSERT INTO "Team_Attributes" VALUES ("4", "1004", "Slow", "Short");
INSERT INTO "Team_Attributes" VALUES ("5", "1005", "Fast", "Long");
INSERT INTO "Team_Attributes" VALUES ("6", "1006", "Slow", "Medium");
INSERT INTO "Team_Attributes" VALUES ("7", "1007", "Fast", "Short");
INSERT INTO "Team_Attributes" VALUES ("8", "1008", "Medium", "Long");
INSERT INTO "Team_Attributes" VALUES ("9", "1009", "Slow", "Long");
INSERT INTO "Team_Attributes" VALUES ("10", "1010", "Fast", "Medium");