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,
PRIMARY KEY ("concert_ID")
);

CREATE TABLE "singer" (
"Singer_ID" INT UNIQUE,
"Name" TEXT,
"Song_Name" TEXT,
PRIMARY KEY ("Singer_ID")
);

CREATE TABLE "singer_in_concert" (
"concert_ID" INT,
"Singer_ID" TEXT,
PRIMARY KEY ("concert_ID", "Singer_ID"),
FOREIGN KEY ("concert_ID") REFERENCES "concert"("concert_ID"),
FOREIGN KEY ("Singer_ID") REFERENCES "singer"("Singer_ID")
);

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





INSERT INTO "concert" VALUES ("1", "Rock Fest");
INSERT INTO "concert" VALUES ("2", "Pop Mania");
INSERT INTO "concert" VALUES ("3", "Jazz Night");
INSERT INTO "concert" VALUES ("4", "Country Jamboree");
INSERT INTO "concert" VALUES ("5", "Indie Showcase");
INSERT INTO "concert" VALUES ("6", "Blues Bash");
INSERT INTO "concert" VALUES ("7", "Classical Gala");
INSERT INTO "singer" VALUES ("101", "Freddie Mercury", "Bohemian Rhapsody");
INSERT INTO "singer" VALUES ("102", "Adele", "Rolling in the Deep");
INSERT INTO "singer" VALUES ("103", "Louis Armstrong", "What a Wonderful World");
INSERT INTO "singer" VALUES ("104", "Dolly Parton", "Jolene");
INSERT INTO "singer" VALUES ("105", "Bon Iver", "Skinny Love");
INSERT INTO "singer" VALUES ("106", "B.B. King", "The Thrill Is Gone");
INSERT INTO "singer" VALUES ("107", "Andrea Bocelli", "Con te partirò");
INSERT INTO "singer" VALUES ("108", "Ed Sheeran", "Shape of You");
INSERT INTO "singer" VALUES ("109", "Taylor Swift", "Blank Space");
INSERT INTO "singer" VALUES ("110", "Bob Dylan", "Like a Rolling Stone");
INSERT INTO "singer_in_concert" VALUES ("1", "101");
INSERT INTO "singer_in_concert" VALUES ("1", "108");
INSERT INTO "singer_in_concert" VALUES ("2", "102");
INSERT INTO "singer_in_concert" VALUES ("2", "109");
INSERT INTO "singer_in_concert" VALUES ("3", "103");
INSERT INTO "singer_in_concert" VALUES ("4", "104");
INSERT INTO "singer_in_concert" VALUES ("5", "105");
INSERT INTO "singer_in_concert" VALUES ("6", "106");
INSERT INTO "singer_in_concert" VALUES ("7", "107");
INSERT INTO "singer_in_concert" VALUES ("1", "109");
INSERT INTO "singer_in_concert" VALUES ("2", "108");
INSERT INTO "singer_in_concert" VALUES ("3", "101");
INSERT INTO "singer_in_concert" VALUES ("4", "102");
INSERT INTO "singer_in_concert" VALUES ("5", "103");
INSERT INTO "singer_in_concert" VALUES ("6", "104");
INSERT INTO "singer_in_concert" VALUES ("7", "105");
INSERT INTO "singer_in_concert" VALUES ("1", "102");
INSERT INTO "singer_in_concert" VALUES ("2", "101");
INSERT INTO "singer_in_concert" VALUES ("3", "108");
INSERT INTO "singer_in_concert" VALUES ("4", "109");
INSERT INTO "singer_in_concert" VALUES ("5", "106");
INSERT INTO "singer_in_concert" VALUES ("6", "107");
INSERT INTO "singer_in_concert" VALUES ("7", "110");
INSERT INTO "stadium" VALUES ("1", "Wembley Stadium");
INSERT INTO "stadium" VALUES ("2", "Madison Square Garden");
INSERT INTO "stadium" VALUES ("3", "Sydney Opera House");
INSERT INTO "stadium" VALUES ("4", "Grand Ole Opry");
INSERT INTO "stadium" VALUES ("5", "Red Rocks Amphitheatre");
INSERT INTO "stadium" VALUES ("6", "Ryman Auditorium");
INSERT INTO "stadium" VALUES ("7", "Carnegie Hall");