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,
"Stadium_ID" 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,
"Location" TEXT,
"Capacity" INT,
PRIMARY KEY ("Stadium_ID")
);





INSERT INTO "stadium" VALUES ("1", "New York", "50000");
INSERT INTO "stadium" VALUES ("2", "Los Angeles", "75000");
INSERT INTO "stadium" VALUES ("3", "Chicago", "60000");
INSERT INTO "stadium" VALUES ("4", "Houston", "75000");
INSERT INTO "stadium" VALUES ("5", "Miami", "45000");
INSERT INTO "concert" VALUES ("101", "Rock Fest", "2");
INSERT INTO "concert" VALUES ("102", "Jazz Night", "3");
INSERT INTO "concert" VALUES ("103", "Pop Gala", "2");
INSERT INTO "concert" VALUES ("104", "Classical Evening", "1");
INSERT INTO "concert" VALUES ("105", "Hip Hop Bash", "4");
INSERT INTO "concert" VALUES ("106", "Indie Vibes", "4");
INSERT INTO "concert" VALUES ("107", "Country Roads", "4");
INSERT INTO "concert" VALUES ("108", "Electronic Dance", "5");
INSERT INTO "singer_in_concert" VALUES ("101", "S1");
INSERT INTO "singer_in_concert" VALUES ("101", "S2");
INSERT INTO "singer_in_concert" VALUES ("102", "S3");
INSERT INTO "singer_in_concert" VALUES ("103", "S4");
INSERT INTO "singer_in_concert" VALUES ("104", "S5");
INSERT INTO "singer_in_concert" VALUES ("105", "S6");
INSERT INTO "singer_in_concert" VALUES ("106", "S7");
INSERT INTO "singer_in_concert" VALUES ("107", "S8");
INSERT INTO "singer_in_concert" VALUES ("108", "S9");