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

CREATE TABLE "Team_Attributes" (
"id" INT,
"team_fifa_api_id" INT,
"buildUpPlaySpeed" INT,
"buildUpPlayPassing" INT,
PRIMARY KEY ("id"),
FOREIGN KEY ("team_fifa_api_id") REFERENCES "Team"("team_fifa_api_id")
);



INSERT INTO "Team" VALUES ("1", "1001", "5001", "Red Lions FC");
INSERT INTO "Team" VALUES ("2", "1002", "5002", "Blue Sharks");
INSERT INTO "Team" VALUES ("3", "1003", "5003", "Green Eagles");
INSERT INTO "Team" VALUES ("4", "1004", "5004", "Golden Tigers");
INSERT INTO "Team" VALUES ("5", "1005", "5005", "Silver Wolves");
INSERT INTO "Team" VALUES ("6", "1006", "5006", "Black Panthers");
INSERT INTO "Team" VALUES ("7", "1007", "5007", "White Falcons");
INSERT INTO "Team" VALUES ("8", "1008", "5008", "Orange Bulls");
INSERT INTO "Team" VALUES ("9", "1009", "5009", "Purple Dragons");
INSERT INTO "Team" VALUES ("10", "1010", "5010", "Yellow Hornets");
INSERT INTO "Team_Attributes" VALUES ("1", "5001", "55", "70");
INSERT INTO "Team_Attributes" VALUES ("2", "5002", "49", "65");
INSERT INTO "Team_Attributes" VALUES ("3", "5003", "60", "80");
INSERT INTO "Team_Attributes" VALUES ("4", "5004", "58", "75");
INSERT INTO "Team_Attributes" VALUES ("5", "5005", "52", "68");
INSERT INTO "Team_Attributes" VALUES ("6", "5006", "50", "60");
INSERT INTO "Team_Attributes" VALUES ("7", "5007", "59", "72");
INSERT INTO "Team_Attributes" VALUES ("8", "5008", "45", "55");
INSERT INTO "Team_Attributes" VALUES ("9", "5009", "53", "69");
INSERT INTO "Team_Attributes" VALUES ("10", "5010", "61", "77");