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 UNIQUE,
"concert_Name" TEXT,
"Year" 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", "Summer Fest", "2014");
INSERT INTO "concert" VALUES ("2", "Winter Gala", "2015");
INSERT INTO "concert" VALUES ("3", "Spring Jam", "2014");
INSERT INTO "concert" VALUES ("4", "Autumn Beats", "2016");
INSERT INTO "concert" VALUES ("5", "New Year Bash", "2014");
INSERT INTO "concert" VALUES ("6", "Rock Revival", "2017");
INSERT INTO "concert" VALUES ("7", "Pop Explosion", "2014");
INSERT INTO "concert" VALUES ("8", "Jazz Night", "2015");
INSERT INTO "concert" VALUES ("9", "Blues Fest", "2014");
INSERT INTO "concert" VALUES ("10", "Country Jamboree", "2018");
INSERT INTO "singer" VALUES ("1", "Alice Wonderland", "Dream On");
INSERT INTO "singer" VALUES ("2", "Bob The Builder", "Can We Fix It?");
INSERT INTO "singer" VALUES ("3", "Charlie Chaplin", "Smile");
INSERT INTO "singer" VALUES ("4", "Diana Ross", "Aint No Mountain High Enough");
INSERT INTO "singer" VALUES ("5", "Elvis Presley", "Hound Dog");
INSERT INTO "singer" VALUES ("6", "Frank Sinatra", "My Way");
INSERT INTO "singer" VALUES ("7", "Grace Jones", "Slave to the Rhythm");
INSERT INTO "singer" VALUES ("8", "Harry Styles", "Watermelon Sugar");
INSERT INTO "singer" VALUES ("9", "Ivy Queen", "Quiero Bailar");
INSERT INTO "singer" VALUES ("10", "Jack Johnson", "Better Together");
INSERT INTO "singer_in_concert" VALUES ("1", "1");
INSERT INTO "singer_in_concert" VALUES ("1", "3");
INSERT INTO "singer_in_concert" VALUES ("3", "2");
INSERT INTO "singer_in_concert" VALUES ("3", "4");
INSERT INTO "singer_in_concert" VALUES ("5", "5");
INSERT INTO "singer_in_concert" VALUES ("5", "6");
INSERT INTO "singer_in_concert" VALUES ("7", "7");
INSERT INTO "singer_in_concert" VALUES ("7", "8");
INSERT INTO "singer_in_concert" VALUES ("9", "9");
INSERT INTO "singer_in_concert" VALUES ("9", "10");
INSERT INTO "singer_in_concert" VALUES ("2", "1");
INSERT INTO "singer_in_concert" VALUES ("4", "2");
INSERT INTO "singer_in_concert" VALUES ("6", "3");
INSERT INTO "singer_in_concert" VALUES ("8", "4");
INSERT INTO "singer_in_concert" VALUES ("10", "5");
INSERT INTO "stadium" VALUES ("1", "Arena One");
INSERT INTO "stadium" VALUES ("2", "Grand Dome");
INSERT INTO "stadium" VALUES ("3", "City Hall");
INSERT INTO "stadium" VALUES ("4", "Park Stage");
INSERT INTO "stadium" VALUES ("5", "Riverside Venue");