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 "singer" (
"Singer_ID" INT UNIQUE,
"Name" TEXT,
PRIMARY KEY ("Singer_ID")
);

CREATE TABLE "song" (
"Song_ID" INT,
"Title" TEXT,
"Singer_ID" INT,
PRIMARY KEY ("Song_ID"),
FOREIGN KEY ("Singer_ID") REFERENCES "singer"("Singer_ID")
);





INSERT INTO "singer" VALUES ("1", "Adele");
INSERT INTO "singer" VALUES ("2", "Bruno Mars");
INSERT INTO "singer" VALUES ("3", "Taylor Swift");
INSERT INTO "singer" VALUES ("4", "Ed Sheeran");
INSERT INTO "singer" VALUES ("5", "Beyonce");
INSERT INTO "singer" VALUES ("6", "The Weeknd");
INSERT INTO "singer" VALUES ("7", "Billie Eilish");
INSERT INTO "singer" VALUES ("8", "Shawn Mendes");
INSERT INTO "singer" VALUES ("9", "Dua Lipa");
INSERT INTO "singer" VALUES ("10", "Sam Smith");
INSERT INTO "song" VALUES ("1", "Hello", "1");
INSERT INTO "song" VALUES ("2", "Rolling in the Deep", "1");
INSERT INTO "song" VALUES ("3", "Grenade", "2");
INSERT INTO "song" VALUES ("4", "Just the Way You Are", "2");
INSERT INTO "song" VALUES ("5", "Shake It Off", "3");
INSERT INTO "song" VALUES ("6", "Blank Space", "3");
INSERT INTO "song" VALUES ("7", "Shape of You", "4");
INSERT INTO "song" VALUES ("8", "Perfect", "4");
INSERT INTO "song" VALUES ("9", "Halo", "5");
INSERT INTO "song" VALUES ("10", "Single Ladies", "5");
INSERT INTO "song" VALUES ("11", "Blinding Lights", "6");
INSERT INTO "song" VALUES ("12", "Starboy", "6");
INSERT INTO "song" VALUES ("13", "Bad Guy", "7");
INSERT INTO "song" VALUES ("14", "Ocean Eyes", "7");
INSERT INTO "song" VALUES ("15", "Stitches", "8");
INSERT INTO "song" VALUES ("16", "Treat You Better", "8");
INSERT INTO "song" VALUES ("17", "New Rules", "9");
INSERT INTO "song" VALUES ("18", "Don't Start Now", "9");
INSERT INTO "song" VALUES ("19", "Stay With Me", "10");
INSERT INTO "song" VALUES ("20", "I'm Not the Only One", "10");