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.3");
INSERT INTO "singer" VALUES ("3", "Cindy Lee", "15.0");
INSERT INTO "singer" VALUES ("4", "David Kim", "5.7");
INSERT INTO "singer" VALUES ("5", "Eva Green", "20.1");
INSERT INTO "singer" VALUES ("6", "Frank Ocean", "3.2");
INSERT INTO "song" VALUES ("101", "Sunrise Melody", "1", "500000.0");
INSERT INTO "song" VALUES ("102", "Moonlight Dance", "1", "300000.0");
INSERT INTO "song" VALUES ("103", "Ocean Breeze", "2", "450000.0");
INSERT INTO "song" VALUES ("104", "City Lights", "3", "700000.0");
INSERT INTO "song" VALUES ("105", "Silent Whisper", "3", "650000.0");
INSERT INTO "song" VALUES ("106", "Echoes", "3", "400000.0");
INSERT INTO "song" VALUES ("107", "Morning Dew", "4", "200000.0");
INSERT INTO "song" VALUES ("108", "Nightfall", "5", "900000.0");
INSERT INTO "song" VALUES ("109", "Starlight", "5", "850000.0");
INSERT INTO "song" VALUES ("110", "Waves", "6", "100000.0");