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

CREATE TABLE "singer" (
"Singer_ID" INT,
"Country" TEXT,
PRIMARY KEY ("Singer_ID")
);

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





INSERT INTO "stadium" VALUES ("1", "New York", "Madison Square Garden", "20000");
INSERT INTO "stadium" VALUES ("2", "Los Angeles", "Staples Center", "19000");
INSERT INTO "stadium" VALUES ("3", "Chicago", "United Center", "23000");
INSERT INTO "stadium" VALUES ("4", "Houston", "Toyota Center", "18000");
INSERT INTO "stadium" VALUES ("5", "San Francisco", "Chase Center", "18000");
INSERT INTO "concert" VALUES ("1", "Rock Night", "1", "2014");
INSERT INTO "concert" VALUES ("2", "Jazz Evening", "1", "2015");
INSERT INTO "concert" VALUES ("3", "Pop Festival", "2", "2014");
INSERT INTO "concert" VALUES ("4", "Classical Gala", "3", "2016");
INSERT INTO "concert" VALUES ("5", "Indie Vibes", "1", "2017");
INSERT INTO "concert" VALUES ("6", "Hip Hop Bash", "2", "2018");
INSERT INTO "concert" VALUES ("7", "Country Fest", "3", "2013");
INSERT INTO "concert" VALUES ("8", "Electronic Night", "4", "2014");
INSERT INTO "concert" VALUES ("9", "Blues Jam", "4", "2015");
INSERT INTO "concert" VALUES ("10", "Reggae Roots", "5", "2019");
INSERT INTO "concert" VALUES ("11", "Metal Mayhem", "1", "2019");
INSERT INTO "concert" VALUES ("12", "Soul Session", "2", "2014");
INSERT INTO "concert" VALUES ("13", "Folk Fest", "3", "2014");
INSERT INTO "concert" VALUES ("14", "Pop Explosion", "1", "2013");
INSERT INTO "concert" VALUES ("15", "Rock Revival", "5", "2014");
INSERT INTO "singer" VALUES ("1", "USA");
INSERT INTO "singer" VALUES ("2", "Canada");
INSERT INTO "singer" VALUES ("3", "UK");
INSERT INTO "singer" VALUES ("4", "Australia");
INSERT INTO "singer" VALUES ("5", "Germany");