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 "Degree_Programs" (
"degree_program_id" INT,
"department_id" INT,
"degree_summary_name" VARCHAR(255),
"degree_summary_description" VARCHAR(255),
PRIMARY KEY ("degree_program_id"),
FOREIGN KEY ("department_id") REFERENCES "Departments"("department_id")
);

CREATE TABLE "Departments" (
"department_id" INT UNIQUE,
"department_name" VARCHAR(255),
"department_description" VARCHAR(255),
PRIMARY KEY ("department_id")
);





INSERT INTO "Departments" VALUES ("1", "Computer Science", "Department of Computer Science and Engineering");
INSERT INTO "Departments" VALUES ("2", "Mathematics", "Department of Mathematics and Statistics");
INSERT INTO "Departments" VALUES ("3", "Physics", "Department of Physics and Astronomy");
INSERT INTO "Departments" VALUES ("4", "History", "Department of History and Culture");
INSERT INTO "Departments" VALUES ("5", "Biology", "Department of Biological Sciences");
INSERT INTO "Departments" VALUES ("6", "Chemistry", "Department of Chemistry and Biochemistry");
INSERT INTO "Departments" VALUES ("7", "Philosophy", "Department of Philosophy and Ethics");
INSERT INTO "Departments" VALUES ("8", "Economics", "Department of Economics and Finance");
INSERT INTO "Degree_Programs" VALUES ("101", "1", "BSc Computer Science", "Bachelor of Science in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("102", "1", "MSc Computer Science", "Master of Science in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("103", "2", "BSc Mathematics", "Bachelor of Science in Mathematics");
INSERT INTO "Degree_Programs" VALUES ("104", "2", "MSc Applied Mathematics", "Master of Science in Applied Mathematics");
INSERT INTO "Degree_Programs" VALUES ("105", "3", "BSc Physics", "Bachelor of Science in Physics");
INSERT INTO "Degree_Programs" VALUES ("106", "4", "BA History", "Bachelor of Arts in History");
INSERT INTO "Degree_Programs" VALUES ("107", "5", "BSc Biology", "Bachelor of Science in Biology");
INSERT INTO "Degree_Programs" VALUES ("108", "6", "BSc Chemistry", "Bachelor of Science in Chemistry");
INSERT INTO "Degree_Programs" VALUES ("109", "7", "BA Philosophy", "Bachelor of Arts in Philosophy");
INSERT INTO "Degree_Programs" VALUES ("110", "8", "BA Economics", "Bachelor of Arts in Economics");
INSERT INTO "Degree_Programs" VALUES ("111", "8", "MSc Economics", "Master of Science in Economics");
INSERT INTO "Degree_Programs" VALUES ("112", "3", "MSc Astrophysics", "Master of Science in Astrophysics");
INSERT INTO "Degree_Programs" VALUES ("113", "5", "MSc Molecular Biology", "Master of Science in Molecular Biology");