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

CREATE TABLE "Team" (
"id" INT,
"team_long_name" TEXT,
"team_short_name" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "Team_Attributes" (
"id" INT,
"team_api_id" INT,
PRIMARY KEY ("id")
);



INSERT INTO "Team" VALUES ("1", "General Electric FC", "GEN");
INSERT INTO "Team" VALUES ("2", "United Stars", "UST");
INSERT INTO "Team" VALUES ("3", "City Warriors", "CW");
INSERT INTO "Team" VALUES ("4", "Mountain Rangers", "MR");
INSERT INTO "Team" VALUES ("5", "Oceanic Waves", "OW");
INSERT INTO "Team_Attributes" VALUES ("1", "1");
INSERT INTO "Team_Attributes" VALUES ("2", "2");
INSERT INTO "Team_Attributes" VALUES ("3", "3");
INSERT INTO "Team_Attributes" VALUES ("4", "4");
INSERT INTO "Team_Attributes" VALUES ("5", "5");
INSERT INTO "Match" VALUES ("1", "1", "2");
INSERT INTO "Match" VALUES ("2", "3", "1");
INSERT INTO "Match" VALUES ("3", "4", "5");
INSERT INTO "Match" VALUES ("4", "2", "3");
INSERT INTO "Match" VALUES ("5", "5", "1");