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

CREATE TABLE "singer" (
"Singer_ID" INT,
"Name" TEXT,
"Country" 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", "Pop and Rock");
INSERT INTO "concert" VALUES ("2", "Winter Gala", "Classical and Jazz");
INSERT INTO "concert" VALUES ("3", "Autumn Beats", "Electronic and Dance");
INSERT INTO "concert" VALUES ("4", "Spring Melody", "Folk and Country");
INSERT INTO "concert" VALUES ("5", "New Year Bash", "Mixed Genres");
INSERT INTO "concert" VALUES ("6", "Solo Night", "Acoustic");
INSERT INTO "singer" VALUES ("101", "Alice Smith", "USA");
INSERT INTO "singer" VALUES ("102", "Bob Johnson", "UK");
INSERT INTO "singer" VALUES ("103", "Carlos Diaz", "Spain");
INSERT INTO "singer" VALUES ("104", "Diana Lee", "South Korea");
INSERT INTO "singer" VALUES ("105", "Ethan Brown", "Canada");
INSERT INTO "singer" VALUES ("106", "Fiona Green", "Australia");
INSERT INTO "singer" VALUES ("107", "George White", "USA");
INSERT INTO "singer" VALUES ("108", "Hana Kim", "South Korea");
INSERT INTO "singer" VALUES ("109", "Ivan Petrov", "Russia");
INSERT INTO "singer" VALUES ("110", "Julia Müller", "Germany");
INSERT INTO "singer_in_concert" VALUES ("1", "101");
INSERT INTO "singer_in_concert" VALUES ("1", "102");
INSERT INTO "singer_in_concert" VALUES ("1", "103");
INSERT INTO "singer_in_concert" VALUES ("2", "104");
INSERT INTO "singer_in_concert" VALUES ("2", "105");
INSERT INTO "singer_in_concert" VALUES ("3", "106");
INSERT INTO "singer_in_concert" VALUES ("3", "107");
INSERT INTO "singer_in_concert" VALUES ("3", "108");
INSERT INTO "singer_in_concert" VALUES ("3", "109");
INSERT INTO "singer_in_concert" VALUES ("4", "110");
INSERT INTO "singer_in_concert" VALUES ("5", "101");
INSERT INTO "singer_in_concert" VALUES ("5", "104");
INSERT INTO "singer_in_concert" VALUES ("5", "107");
INSERT INTO "singer_in_concert" VALUES ("5", "110");
INSERT INTO "singer_in_concert" VALUES ("6", "105");
INSERT INTO "stadium" VALUES ("201", "Grand Arena");
INSERT INTO "stadium" VALUES ("202", "City Hall");
INSERT INTO "stadium" VALUES ("203", "Open Air Theater");
INSERT INTO "stadium" VALUES ("204", "Downtown Club");
INSERT INTO "stadium" VALUES ("205", "Riverside Pavilion");