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,
"Record_Company" TEXT,
PRIMARY KEY ("Orchestra_ID")
);

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





INSERT INTO "conductor" VALUES ("1", "Leonard Bernstein");
INSERT INTO "conductor" VALUES ("2", "Gustavo Dudamel");
INSERT INTO "conductor" VALUES ("3", "Marin Alsop");
INSERT INTO "conductor" VALUES ("4", "Simon Rattle");
INSERT INTO "conductor" VALUES ("5", "Valery Gergiev");
INSERT INTO "orchestra" VALUES ("1", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("2", "Sony Classical");
INSERT INTO "orchestra" VALUES ("3", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("4", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("5", "EMI Classics");
INSERT INTO "orchestra" VALUES ("6", "Sony Classical");
INSERT INTO "orchestra" VALUES ("7", "Warner Classics");
INSERT INTO "orchestra" VALUES ("8", "EMI Classics");
INSERT INTO "orchestra" VALUES ("9", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("10", "NULL");
INSERT INTO "orchestra" VALUES ("11", "Naxos");
INSERT INTO "orchestra" VALUES ("12", "Naxos");
INSERT INTO "orchestra" VALUES ("13", "Sony Classical");
INSERT INTO "orchestra" VALUES ("14", "Deutsche Grammophon");
INSERT INTO "orchestra" VALUES ("15", "Deutsche Grammophon");
INSERT INTO "performance" VALUES ("1", "Symphony");
INSERT INTO "performance" VALUES ("2", "Concerto");
INSERT INTO "performance" VALUES ("3", "Opera");
INSERT INTO "performance" VALUES ("4", "Ballet");
INSERT INTO "performance" VALUES ("5", "Chamber Music");
INSERT INTO "performance" VALUES ("6", "Symphony");
INSERT INTO "performance" VALUES ("7", "Concerto");
INSERT INTO "performance" VALUES ("8", "Opera");
INSERT INTO "performance" VALUES ("9", "Ballet");
INSERT INTO "performance" VALUES ("10", "Choral");