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,
"Highest_Position" 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 Smith", "3.2");
INSERT INTO "singer" VALUES ("5", "Eva Johnson", "20.1");
INSERT INTO "singer" VALUES ("6", "Frank Miller", "0.5");
INSERT INTO "singer" VALUES ("7", "Grace Kim", "7.7");
INSERT INTO "song" VALUES ("101", "Sunrise Melody", "1", "350000", "2");
INSERT INTO "song" VALUES ("102", "Moonlight Dance", "1", "150000", "5");
INSERT INTO "song" VALUES ("103", "Ocean Breeze", "2", "299999", "10");
INSERT INTO "song" VALUES ("104", "City Lights", "3", "500000", "1");
INSERT INTO "song" VALUES ("105", "Mountain High", "4", "100000", "15");
INSERT INTO "song" VALUES ("106", "River Flow", "5", "450000", "3");
INSERT INTO "song" VALUES ("107", "Desert Rose", "5", "200000", "7");
INSERT INTO "song" VALUES ("108", "Winter Chill", "6", "1000", "50");
INSERT INTO "song" VALUES ("109", "Spring Bloom", "7", "305000", "4");
INSERT INTO "song" VALUES ("110", "Autumn Leaves", "7", "250000", "8");