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", "Tokyo Dome");
INSERT INTO "stadium" VALUES ("5", "Allianz Arena");
INSERT INTO "stadium" VALUES ("6", "Empty Stadium");
INSERT INTO "concert" VALUES ("1", "Rock Fest", "Classic Rock", "1", "2023");
INSERT INTO "concert" VALUES ("2", "Pop Mania", "Top 40 Hits", "2", "2023");
INSERT INTO "concert" VALUES ("3", "Jazz Night", "Smooth Jazz", "1", "2023");
INSERT INTO "concert" VALUES ("4", "Country Jamboree", "Nashville Stars", "3", "2022");
INSERT INTO "concert" VALUES ("5", "EDM Extravaganza", "Electronic Beats", "2", "2023");
INSERT INTO "concert" VALUES ("6", "Classical Gala", "Orchestral Masterpieces", "4", "2022");
INSERT INTO "concert" VALUES ("7", "Blues Bash", "Delta Blues", "1", "2023");
INSERT INTO "concert" VALUES ("8", "Hip Hop Summit", "Rap Legends", "3", "2023");
INSERT INTO "concert" VALUES ("9", "Indie Showcase", "Alternative Sounds", "5", "2023");
INSERT INTO "concert" VALUES ("10", "World Music Festival", "Global Rhythms", "4", "2023");
INSERT INTO "concert" VALUES ("11", "Summer Jam", "Pop Hits", "2", "2022");
INSERT INTO "concert" VALUES ("12", "Winter Wonderland Concert", "Holiday Tunes", "1", "2022");
INSERT INTO "concert" VALUES ("13", "Spring Fling", "New Artists", "3", "2023");
INSERT INTO "concert" VALUES ("14", "Autumn Acoustics", "Unplugged Sessions", "5", "2022");