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 "conductor" (
"Conductor_ID" INT,
"Name" TEXT,
PRIMARY KEY ("Conductor_ID")
);

CREATE TABLE "orchestra" (
"Orchestra_ID" INT UNIQUE,
"Conductor_ID" INT,
"Record_Company" TEXT,
"Year_of_Founded" FLOAT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY ("Conductor_ID") REFERENCES "conductor"("Conductor_ID")
);

CREATE TABLE "performance" (
"Performance_ID" INT,
"Type" TEXT,
PRIMARY KEY ("Performance_ID")
);





INSERT INTO "conductor" VALUES ("1", "Alice Johnson");
INSERT INTO "conductor" VALUES ("2", "Bob Smith");
INSERT INTO "conductor" VALUES ("3", "Clara Lee");
INSERT INTO "conductor" VALUES ("4", "David Kim");
INSERT INTO "conductor" VALUES ("5", "Eva Martinez");
INSERT INTO "orchestra" VALUES ("101", "1", "Harmonia Records", "1998");
INSERT INTO "orchestra" VALUES ("102", "2", "Symphony Sounds", "2005");
INSERT INTO "orchestra" VALUES ("103", "3", "Harmonia Records", "2010");
INSERT INTO "orchestra" VALUES ("104", "4", "Classic Tunes", "1995");
INSERT INTO "orchestra" VALUES ("105", "5", "Symphony Sounds", "2001");
INSERT INTO "orchestra" VALUES ("106", "1", "Melody Makers", "2007");
INSERT INTO "orchestra" VALUES ("107", "2", "Classic Tunes", "2015");
INSERT INTO "orchestra" VALUES ("108", "3", "Harmonia Records", "2002");
INSERT INTO "orchestra" VALUES ("109", "4", "Melody Makers", "1999");
INSERT INTO "orchestra" VALUES ("110", "5", "Symphony Sounds", "1990");
INSERT INTO "performance" VALUES ("201", "Symphony");
INSERT INTO "performance" VALUES ("202", "Concerto");
INSERT INTO "performance" VALUES ("203", "Opera");
INSERT INTO "performance" VALUES ("204", "Ballet");
INSERT INTO "performance" VALUES ("205", "Chamber Music");