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,
"Theme" 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,
"Name" TEXT,
PRIMARY KEY ("Stadium_ID")
);





INSERT INTO "stadium" VALUES ("1", "Wembley Stadium");
INSERT INTO "stadium" VALUES ("2", "Madison Square Garden");
INSERT INTO "stadium" VALUES ("3", "Staples Center");
INSERT INTO "stadium" VALUES ("4", "Allianz Arena");
INSERT INTO "stadium" VALUES ("5", "Empty Stadium 1");
INSERT INTO "stadium" VALUES ("6", "Empty Stadium 2");
INSERT INTO "stadium" VALUES ("7", "Empty Stadium 3");
INSERT INTO "concert" VALUES ("1", "Rock Fest", "Classic Rock", "1", "2023");
INSERT INTO "concert" VALUES ("2", "Pop Mania", "Top Hits", "2", "2022");
INSERT INTO "concert" VALUES ("3", "Jazz Night", "Smooth Jazz", "1", "2023");
INSERT INTO "concert" VALUES ("4", "Country Jamboree", "Nashville Stars", "3", "2021");
INSERT INTO "concert" VALUES ("5", "EDM Rave", "Electronic Beats", "2", "2023");