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

CREATE TABLE "singer" (
"Singer_ID" INT UNIQUE,
"Name" TEXT,
"Country" TEXT,
"Song_Name" TEXT,
"Song_release_year" TEXT,
"Age" INT,
"Is_male" BOOLEAN,
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")
);

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





INSERT INTO "concert" VALUES ("1", "2014");
INSERT INTO "concert" VALUES ("2", "2015");
INSERT INTO "concert" VALUES ("3", "2016");
INSERT INTO "concert" VALUES ("4", "2017");
INSERT INTO "concert" VALUES ("5", "2018");
INSERT INTO "singer" VALUES ("1", "Alice Johnson", "USA", "Sunrise", "2013", "28", "0");
INSERT INTO "singer" VALUES ("2", "Bob Smith", "UK", "Moonlight", "2014", "35", "1");
INSERT INTO "singer" VALUES ("3", "Carlos Diaz", "Spain", "Estrella", "2015", "40", "1");
INSERT INTO "singer" VALUES ("4", "Diana Lee", "South Korea", "Dream", "2016", "22", "0");
INSERT INTO "singer" VALUES ("5", "Ethan Brown", "Canada", "Waves", "2017", "30", "1");
INSERT INTO "singer" VALUES ("6", "Fiona Green", "Australia", "Breeze", "2018", "27", "0");
INSERT INTO "singer" VALUES ("7", "George White", "USA", "Fire", "2019", "45", "1");
INSERT INTO "singer" VALUES ("8", "Hannah Black", "UK", "Rain", "2020", "33", "0");
INSERT INTO "singer" VALUES ("9", "Ivan Petrov", "Russia", "Snow", "2014", "38", "1");
INSERT INTO "singer" VALUES ("10", "Julia Kim", "South Korea", "Light", "2015", "26", "0");
INSERT INTO "singer_in_concert" VALUES ("1", "1");
INSERT INTO "singer_in_concert" VALUES ("1", "2");
INSERT INTO "singer_in_concert" VALUES ("2", "3");
INSERT INTO "singer_in_concert" VALUES ("2", "4");
INSERT INTO "singer_in_concert" VALUES ("3", "5");
INSERT INTO "singer_in_concert" VALUES ("3", "6");
INSERT INTO "singer_in_concert" VALUES ("4", "7");
INSERT INTO "singer_in_concert" VALUES ("4", "8");
INSERT INTO "singer_in_concert" VALUES ("5", "9");
INSERT INTO "singer_in_concert" VALUES ("5", "10");
INSERT INTO "stadium" VALUES ("1", "New York");
INSERT INTO "stadium" VALUES ("2", "London");
INSERT INTO "stadium" VALUES ("3", "Madrid");
INSERT INTO "stadium" VALUES ("4", "Seoul");
INSERT INTO "stadium" VALUES ("5", "Toronto");