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

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





INSERT INTO "conductor" VALUES ("1", "Leonard Bernstein");
INSERT INTO "conductor" VALUES ("2", "Herbert von Karajan");
INSERT INTO "conductor" VALUES ("3", "Gustavo Dudamel");
INSERT INTO "conductor" VALUES ("4", "Marin Alsop");
INSERT INTO "conductor" VALUES ("5", "Simon Rattle");
INSERT INTO "orchestra" VALUES ("101", "Deutsche Grammophon", "1980");
INSERT INTO "orchestra" VALUES ("102", "Sony Classical", "2005");
INSERT INTO "orchestra" VALUES ("103", "Decca Records", "1995");
INSERT INTO "orchestra" VALUES ("104", "Warner Classics", "2010");
INSERT INTO "orchestra" VALUES ("105", "Deutsche Grammophon", "2000");
INSERT INTO "orchestra" VALUES ("106", "Sony Classical", "1998");
INSERT INTO "orchestra" VALUES ("107", "Decca Records", "2200");
INSERT INTO "orchestra" VALUES ("108", "Warner Classics", "2002");
INSERT INTO "orchestra" VALUES ("109", "Naxos", "2004");
INSERT INTO "orchestra" VALUES ("110", "Naxos", "1999");
INSERT INTO "performance" VALUES ("1", "Concert", "2023-01-15");
INSERT INTO "performance" VALUES ("2", "Opera", "2023-02-20");
INSERT INTO "performance" VALUES ("3", "Symphony", "2023-03-10");
INSERT INTO "performance" VALUES ("4", "Chamber Music", "2023-04-05");
INSERT INTO "performance" VALUES ("5", "Ballet", "2023-05-22");