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 "concert" (
"concert_ID" INT,
"concert_Name" TEXT,
"Stadium_ID" TEXT,
"Year" TEXT,
PRIMARY KEY ("concert_ID"),
FOREIGN KEY ("Stadium_ID") REFERENCES "stadium"("Stadium_ID")
);

CREATE TABLE "stadium" (
"Stadium_ID" INT UNIQUE,
"Location" TEXT,
"Name" TEXT,
PRIMARY KEY ("Stadium_ID")
);





INSERT INTO "stadium" VALUES ("1", "London", "Wembley Stadium");
INSERT INTO "stadium" VALUES ("2", "Manchester", "Old Trafford");
INSERT INTO "stadium" VALUES ("3", "Liverpool", "Anfield");
INSERT INTO "stadium" VALUES ("4", "Birmingham", "Villa Park");
INSERT INTO "stadium" VALUES ("5", "Glasgow", "Hampden Park");
INSERT INTO "stadium" VALUES ("6", "Cardiff", "Principality Stadium");
INSERT INTO "stadium" VALUES ("7", "Edinburgh", "Murrayfield Stadium");
INSERT INTO "stadium" VALUES ("8", "Dublin", "Aviva Stadium");
INSERT INTO "stadium" VALUES ("9", "Belfast", "Windsor Park");
INSERT INTO "stadium" VALUES ("10", "Newcastle", "St James' Park");
INSERT INTO "concert" VALUES ("1", "Summer Fest", "1", "2023");
INSERT INTO "concert" VALUES ("2", "Rock Mania", "2", "2022");
INSERT INTO "concert" VALUES ("3", "Pop Explosion", "1", "2023");
INSERT INTO "concert" VALUES ("4", "Jazz Night", "3", "2021");
INSERT INTO "concert" VALUES ("5", "Classical Gala", "2", "2023");
INSERT INTO "concert" VALUES ("6", "Indie Showcase", "4", "2022");
INSERT INTO "concert" VALUES ("7", "Blues Bash", "1", "2021");