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,
"Birth_Year" FLOAT,
PRIMARY KEY ("Singer_ID")
);

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





INSERT INTO "singer" VALUES ("1", "Alice Johnson", "1985");
INSERT INTO "singer" VALUES ("2", "Bob Smith", "1990");
INSERT INTO "singer" VALUES ("3", "Charlie Davis", "1978");
INSERT INTO "singer" VALUES ("4", "Diana Evans", "1992");
INSERT INTO "singer" VALUES ("5", "Ethan Brown", "1980");
INSERT INTO "singer" VALUES ("6", "Fiona Clark", "1988");
INSERT INTO "singer" VALUES ("7", "George Miller", "1995");
INSERT INTO "singer" VALUES ("8", "Hannah Wilson", "1983");
INSERT INTO "song" VALUES ("101", "Sunrise Melody", "1", "150000.0");
INSERT INTO "song" VALUES ("102", "Midnight Blues", "1", "120000.0");
INSERT INTO "song" VALUES ("103", "Ocean Breeze", "2", "90000.0");
INSERT INTO "song" VALUES ("104", "City Lights", "5", "200000.0");
INSERT INTO "song" VALUES ("105", "Mountain High", "5", "180000.0");
INSERT INTO "song" VALUES ("106", "Desert Rose", "6", "50000.0");
INSERT INTO "song" VALUES ("107", "Winter Chill", "6", "75000.0");
INSERT INTO "song" VALUES ("108", "Spring Dance", "6", "60000.0");
INSERT INTO "song" VALUES ("109", "Autumn Leaves", "2", "110000.0");