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", "Dua Lipa");
INSERT INTO "singer" VALUES ("8", "Shawn Mendes");
INSERT INTO "singer" VALUES ("9", "Billie Eilish");
INSERT INTO "singer" VALUES ("10", "Lady Gaga");
INSERT INTO "song" VALUES ("101", "Hello", "1");
INSERT INTO "song" VALUES ("102", "Rolling in the Deep", "1");
INSERT INTO "song" VALUES ("103", "Uptown Funk", "2");
INSERT INTO "song" VALUES ("104", "Just the Way You Are", "2");
INSERT INTO "song" VALUES ("105", "Shake It Off", "3");
INSERT INTO "song" VALUES ("106", "Blank Space", "3");
INSERT INTO "song" VALUES ("107", "Shape of You", "4");
INSERT INTO "song" VALUES ("108", "Perfect", "4");
INSERT INTO "song" VALUES ("109", "Halo", "5");
INSERT INTO "song" VALUES ("110", "Single Ladies", "5");
INSERT INTO "song" VALUES ("111", "Blinding Lights", "6");
INSERT INTO "song" VALUES ("112", "Starboy", "6");
INSERT INTO "song" VALUES ("113", "Levitating", "7");
INSERT INTO "song" VALUES ("114", "Don't Start Now", "7");
INSERT INTO "song" VALUES ("115", "Stitches", "8");
INSERT INTO "song" VALUES ("116", "Treat You Better", "8");
INSERT INTO "song" VALUES ("117", "Bad Guy", "9");
INSERT INTO "song" VALUES ("118", "Everything I Wanted", "9");
INSERT INTO "song" VALUES ("119", "Poker Face", "10");
INSERT INTO "song" VALUES ("120", "Shallow", "10");