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 UNIQUE,
PRIMARY KEY ("Conductor_ID")
);

CREATE TABLE "orchestra" (
"Orchestra_ID" INT UNIQUE,
"Record_Company" TEXT,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID")
);

CREATE TABLE "performance" (
"Performance_ID" INT,
"Orchestra_ID" INT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY ("Orchestra_ID") REFERENCES "orchestra"("Orchestra_ID")
);





INSERT INTO "conductor" VALUES ("1");
INSERT INTO "conductor" VALUES ("2");
INSERT INTO "conductor" VALUES ("3");
INSERT INTO "conductor" VALUES ("4");
INSERT INTO "conductor" VALUES ("5");
INSERT INTO "orchestra" VALUES ("1", "Sony Classical", "CD");
INSERT INTO "orchestra" VALUES ("2", "Deutsche Grammophon", "DVD");
INSERT INTO "orchestra" VALUES ("3", "EMI Classics", "Vinyl");
INSERT INTO "orchestra" VALUES ("4", "Warner Classics", "Digital");
INSERT INTO "orchestra" VALUES ("5", "Universal Music", "CD");
INSERT INTO "orchestra" VALUES ("6", "Naxos", "DVD");
INSERT INTO "orchestra" VALUES ("7", "Chandos", "Cassette");
INSERT INTO "orchestra" VALUES ("8", "BMG", "CD");
INSERT INTO "orchestra" VALUES ("9", "Philips", "Digital");
INSERT INTO "orchestra" VALUES ("10", "Sony Classical", "DVD");
INSERT INTO "performance" VALUES ("1", "1");
INSERT INTO "performance" VALUES ("2", "2");
INSERT INTO "performance" VALUES ("3", "3");
INSERT INTO "performance" VALUES ("4", "4");
INSERT INTO "performance" VALUES ("5", "5");
INSERT INTO "performance" VALUES ("6", "6");
INSERT INTO "performance" VALUES ("7", "7");
INSERT INTO "performance" VALUES ("8", "8");
INSERT INTO "performance" VALUES ("9", "9");
INSERT INTO "performance" VALUES ("10", "10");