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", "Adele", "190.5");
INSERT INTO "singer" VALUES ("2", "Bruno Mars", "120.3");
INSERT INTO "singer" VALUES ("3", "Taylor Swift", "400.0");
INSERT INTO "singer" VALUES ("4", "Ed Sheeran", "220.7");
INSERT INTO "singer" VALUES ("5", "Newcomer Star", "1.2");
INSERT INTO "singer" VALUES ("6", "Solo Hit", "15.0");
INSERT INTO "song" VALUES ("1", "Hello", "1", "150.0", "1");
INSERT INTO "song" VALUES ("2", "Someone Like You", "1", "130.5", "2");
INSERT INTO "song" VALUES ("3", "Uptown Funk", "2", "200.0", "1");
INSERT INTO "song" VALUES ("4", "Just the Way You Are", "2", "180.0", "2");
INSERT INTO "song" VALUES ("5", "Shake It Off", "3", "300.0", "1");
INSERT INTO "song" VALUES ("6", "Blank Space", "3", "280.0", "1");
INSERT INTO "song" VALUES ("7", "Shape of You", "4", "350.0", "1");
INSERT INTO "song" VALUES ("8", "Perfect", "4", "320.0", "2");
INSERT INTO "song" VALUES ("9", "One Hit Wonder", "6", "500.0", "1");
INSERT INTO "song" VALUES ("10", "Debut Single", "5", "0.0", "100");
INSERT INTO "song" VALUES ("11", "Another Song", "1", "50.0", "10");
INSERT INTO "song" VALUES ("12", "Late Release", "3", "0.0", "99");