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,
"Net_Worth_Millions" 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 Monroe", "12.5");
INSERT INTO "singer" VALUES ("2", "Bob Carter", "8.0");
INSERT INTO "singer" VALUES ("3", "Cindy Lee", "15.2");
INSERT INTO "singer" VALUES ("4", "David Kim", "5.5");
INSERT INTO "singer" VALUES ("5", "Eva Green", "20.0");
INSERT INTO "singer" VALUES ("6", "Frank Ocean", "0.0");
INSERT INTO "singer" VALUES ("7", "Grace Park", "3.3");
INSERT INTO "singer" VALUES ("8", "Hank Moody", "7.7");
INSERT INTO "song" VALUES ("101", "Sunrise", "1", "50000");
INSERT INTO "song" VALUES ("102", "Moonlight", "1", "30000");
INSERT INTO "song" VALUES ("103", "Ocean Breeze", "3", "45000");
INSERT INTO "song" VALUES ("104", "City Lights", "5", "60000");
INSERT INTO "song" VALUES ("105", "Mountain High", "5", "55000");
INSERT INTO "song" VALUES ("106", "Desert Rose", "7", "20000");
INSERT INTO "song" VALUES ("107", "Winter Chill", "7", "15000");