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,
"Highest_Position" FLOAT,
PRIMARY KEY ("Song_ID"),
FOREIGN KEY ("Singer_ID") REFERENCES "singer"("Singer_ID")
);





INSERT INTO "singer" VALUES ("1", "Alice Monroe", "1985");
INSERT INTO "singer" VALUES ("2", "Bob Carter", "1990");
INSERT INTO "singer" VALUES ("3", "Cindy Lee", "1975");
INSERT INTO "singer" VALUES ("4", "David Kim", "2000");
INSERT INTO "singer" VALUES ("5", "Eva Zhang", "1988");
INSERT INTO "singer" VALUES ("6", "Frank O'Neil", "1965");
INSERT INTO "singer" VALUES ("7", "Grace Park", "1995");
INSERT INTO "singer" VALUES ("8", "Hank Miller", "1980");
INSERT INTO "song" VALUES ("101", "Sunrise Melody", "1", "500000.0", "3");
INSERT INTO "song" VALUES ("102", "Midnight Blues", "1", "150000.0", "15");
INSERT INTO "song" VALUES ("103", "Ocean Breeze", "2", "750000.0", "1");
INSERT INTO "song" VALUES ("104", "City Lights", "3", "300000.0", "7");
INSERT INTO "song" VALUES ("105", "Mountain High", "4", "100000.0", "20");
INSERT INTO "song" VALUES ("106", "Desert Rose", "5", "450000.0", "5");
INSERT INTO "song" VALUES ("107", "Winter Chill", "6", "200000.0", "12");
INSERT INTO "song" VALUES ("108", "Spring Dance", "7", "600000.0", "2");
INSERT INTO "song" VALUES ("109", "Autumn Leaves", "8", "350000.0", "8");
INSERT INTO "song" VALUES ("110", "Nightfall", "2", "400000.0", "4");
INSERT INTO "song" VALUES ("111", "Echoes", "3", "250000.0", "10");
INSERT INTO "song" VALUES ("112", "Starlight", "5", "50000.0", "30");
INSERT INTO "song" VALUES ("113", "Rainy Days", "7", "1000000.0", "1");
INSERT INTO "song" VALUES ("114", "Thunderstorm", "6", "120000.0", "18");
INSERT INTO "song" VALUES ("115", "Golden Hour", "8", "800000.0", "2");