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,
"Stadium_ID" TEXT,
"Year" TEXT,
PRIMARY KEY ("concert_ID"),
FOREIGN KEY ("Stadium_ID") REFERENCES "stadium"("Stadium_ID")
);

CREATE TABLE "singer" (
"Singer_ID" INT,
"Name" TEXT,
"Song_Name" TEXT,
PRIMARY KEY ("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", "Allianz Arena");
INSERT INTO "stadium" VALUES ("5", "Tokyo Dome");
INSERT INTO "stadium" VALUES ("6", "Camp Nou");
INSERT INTO "stadium" VALUES ("7", "Anfield");
INSERT INTO "singer" VALUES ("1", "Ed Sheeran", "Shape of You");
INSERT INTO "singer" VALUES ("2", "Adele", "Rolling in the Deep");
INSERT INTO "singer" VALUES ("3", "Beyonce", "Single Ladies");
INSERT INTO "singer" VALUES ("4", "Coldplay", "Viva La Vida");
INSERT INTO "singer" VALUES ("5", "Taylor Swift", "Blank Space");
INSERT INTO "singer" VALUES ("6", "Queen", "Bohemian Rhapsody");
INSERT INTO "concert" VALUES ("1", "Summer Fest", "1", "2014");
INSERT INTO "concert" VALUES ("2", "Winter Gala", "2", "2015");
INSERT INTO "concert" VALUES ("3", "Rock Out", "1", "2015");
INSERT INTO "concert" VALUES ("4", "Pop Explosion", "3", "2014");
INSERT INTO "concert" VALUES ("5", "Jazz Night", "4", "2016");
INSERT INTO "concert" VALUES ("6", "Classical Harmony", "5", "2015");
INSERT INTO "concert" VALUES ("7", "Global Beats", "6", "2014");
INSERT INTO "concert" VALUES ("8", "Acoustic Sessions", "2", "2014");
INSERT INTO "concert" VALUES ("9", "Indie Fest", "3", "2016");
INSERT INTO "concert" VALUES ("10", "Blues Bash", "4", "2014");