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 "singer_in_concert" (
"concert_ID" INT,
"Singer_ID" TEXT,
PRIMARY KEY ("concert_ID", "Singer_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", "O2 Arena");
INSERT INTO "stadium" VALUES ("5", "Tokyo Dome");
INSERT INTO "stadium" VALUES ("6", "Allianz Arena");
INSERT INTO "stadium" VALUES ("7", "Camp Nou");
INSERT INTO "concert" VALUES ("1", "Summer Fest", "Pop Hits", "1", "2014");
INSERT INTO "concert" VALUES ("2", "Rock Mania", "Classic Rock", "2", "2015");
INSERT INTO "concert" VALUES ("3", "Jazz Night", "Smooth Jazz", "3", "2014");
INSERT INTO "concert" VALUES ("4", "EDM Explosion", "Electronic Dance", "4", "2016");
INSERT INTO "concert" VALUES ("5", "Country Jamboree", "Nashville Stars", "5", "2015");
INSERT INTO "concert" VALUES ("6", "Global Sounds", "World Music", "6", "2017");
INSERT INTO "concert" VALUES ("7", "Pop Extravaganza", "Top 40", "7", "2014");
INSERT INTO "concert" VALUES ("8", "Blues Festival", "Delta Blues", "1", "2016");
INSERT INTO "concert" VALUES ("9", "Indie Showcase", "Alternative", "2", "2014");
INSERT INTO "concert" VALUES ("10", "Classical Gala", "Orchestral", "3", "2017");
INSERT INTO "singer_in_concert" VALUES ("1", "101");
INSERT INTO "singer_in_concert" VALUES ("1", "102");
INSERT INTO "singer_in_concert" VALUES ("2", "103");
INSERT INTO "singer_in_concert" VALUES ("3", "104");
INSERT INTO "singer_in_concert" VALUES ("4", "105");
INSERT INTO "singer_in_concert" VALUES ("5", "106");
INSERT INTO "singer_in_concert" VALUES ("6", "107");
INSERT INTO "singer_in_concert" VALUES ("7", "108");
INSERT INTO "singer_in_concert" VALUES ("8", "109");
INSERT INTO "singer_in_concert" VALUES ("9", "110");
INSERT INTO "singer_in_concert" VALUES ("10", "111");
INSERT INTO "singer_in_concert" VALUES ("2", "101");
INSERT INTO "singer_in_concert" VALUES ("4", "103");
INSERT INTO "singer_in_concert" VALUES ("6", "105");
INSERT INTO "singer_in_concert" VALUES ("8", "107");
INSERT INTO "singer_in_concert" VALUES ("10", "109");