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



INSERT INTO "Team" VALUES ("1", "1001", "FCB");
INSERT INTO "Team" VALUES ("2", "1002", "RMA");
INSERT INTO "Team" VALUES ("3", "1003", "ATM");
INSERT INTO "Team" VALUES ("4", "1004", "JUV");
INSERT INTO "Team" VALUES ("5", "1005", "MUN");
INSERT INTO "Team" VALUES ("6", "1006", "LIV");
INSERT INTO "Team" VALUES ("7", "1007", "CHE");
INSERT INTO "Team" VALUES ("8", "1008", "ARS");
INSERT INTO "Team" VALUES ("9", "1009", "PSG");
INSERT INTO "Team" VALUES ("10", "1010", "BVB");
INSERT INTO "Team_Attributes" VALUES ("1", "1001", "80", "75", "70", "65");
INSERT INTO "Team_Attributes" VALUES ("2", "1002", "70", "72", "68", "60");
INSERT INTO "Team_Attributes" VALUES ("3", "1003", "65", "69", "72", "55");
INSERT INTO "Team_Attributes" VALUES ("4", "1004", "75", "71", "66", "62");
INSERT INTO "Team_Attributes" VALUES ("5", "1005", "60", "68", "70", "58");
INSERT INTO "Team_Attributes" VALUES ("6", "1006", "85", "74", "69", "64");
INSERT INTO "Team_Attributes" VALUES ("7", "1007", "78", "73", "67", "61");
INSERT INTO "Team_Attributes" VALUES ("8", "1008", "68", "66", "65", "59");
INSERT INTO "Team_Attributes" VALUES ("9", "1009", "77", "76", "71", "63");
INSERT INTO "Team_Attributes" VALUES ("10", "1010", "69", "67", "64", "57");