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,
"Name" TEXT,
"Song_Name" TEXT,
"Song_release_year" TEXT,
"Age" INT,
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")
);





INSERT INTO "concert" VALUES ("1", "2023");
INSERT INTO "concert" VALUES ("2", "2022");
INSERT INTO "concert" VALUES ("3", "2024");
INSERT INTO "concert" VALUES ("4", "2021");
INSERT INTO "concert" VALUES ("5", "2023");
INSERT INTO "singer" VALUES ("1", "Taylor Swift", "Love Story", "2008", "33");
INSERT INTO "singer" VALUES ("2", "Olivia Rodrigo", "drivers license", "2021", "20");
INSERT INTO "singer" VALUES ("3", "Ed Sheeran", "Shape of You", "2017", "32");
INSERT INTO "singer" VALUES ("4", "Billie Eilish", "Bad Guy", "2019", "21");
INSERT INTO "singer" VALUES ("5", "Adele", "Rolling in the Deep", "2010", "35");
INSERT INTO "singer" VALUES ("6", "Shawn Mendes", "Stitches", "2015", "25");
INSERT INTO "singer" VALUES ("7", "Dua Lipa", "Don't Start Now", "2019", "28");
INSERT INTO "singer" VALUES ("8", "Justin Bieber", "Baby", "2010", "29");
INSERT INTO "singer" VALUES ("9", "Ariana Grande", "Thank U, Next", "2018", "30");
INSERT INTO "singer" VALUES ("10", "The Kid Laroi", "Stay", "2021", "20");
INSERT INTO "singer_in_concert" VALUES ("1", "1");
INSERT INTO "singer_in_concert" VALUES ("1", "3");
INSERT INTO "singer_in_concert" VALUES ("2", "2");
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 "singer_in_concert" VALUES ("1", "2");
INSERT INTO "singer_in_concert" VALUES ("2", "1");
INSERT INTO "singer_in_concert" VALUES ("3", "4");
INSERT INTO "singer_in_concert" VALUES ("4", "5");
INSERT INTO "singer_in_concert" VALUES ("5", "6");