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



INSERT INTO "Team" VALUES ("1", "1601", "FC Lorient", "LOR");
INSERT INTO "Team" VALUES ("2", "1602", "Paris Saint-Germain", "PSG");
INSERT INTO "Team" VALUES ("3", "1603", "Olympique Lyonnais", "OL");
INSERT INTO "Team" VALUES ("4", "1604", "Olympique de Marseille", "OM");
INSERT INTO "Team" VALUES ("5", "1605", "AS Monaco", "MON");
INSERT INTO "Team" VALUES ("6", "1606", "Lille OSC", "LIL");
INSERT INTO "Team" VALUES ("7", "1607", "Girondins de Bordeaux", "BOR");
INSERT INTO "Team" VALUES ("8", "1608", "OGC Nice", "NIC");
INSERT INTO "Team" VALUES ("9", "1609", "Stade Rennais FC", "REN");
INSERT INTO "Team" VALUES ("10", "1610", "AS Saint-Étienne", "STE");
INSERT INTO "Team_Attributes" VALUES ("1", "1601", "2010-02-22 00:00:00", "Balanced", "40", "Normal");
INSERT INTO "Team_Attributes" VALUES ("2", "1601", "2010-08-20 00:00:00", "Fast", "60", "Long");
INSERT INTO "Team_Attributes" VALUES ("3", "1602", "2010-02-22 00:00:00", "Slow", "30", "Short");
INSERT INTO "Team_Attributes" VALUES ("4", "1603", "2010-02-22 00:00:00", "Balanced", "50", "Normal");
INSERT INTO "Team_Attributes" VALUES ("5", "1601", "2011-02-22 00:00:00", "Balanced", "45", "Normal");
INSERT INTO "Team_Attributes" VALUES ("6", "1604", "2010-02-22 00:00:00", "Fast", "70", "Long");
INSERT INTO "Team_Attributes" VALUES ("7", "1601", "2010-02-23 00:00:00", "Balanced", "42", "Normal");
INSERT INTO "Team_Attributes" VALUES ("8", "1605", "2010-02-22 00:00:00", "Slow", "25", "Short");
INSERT INTO "Team_Attributes" VALUES ("9", "1601", "2009-02-22 00:00:00", "Balanced", "38", "Normal");
INSERT INTO "Team_Attributes" VALUES ("10", "1606", "2010-02-22 00:00:00", "Balanced", "55", "Normal");