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", "Chemistry", "Department of Chemistry and Biochemistry");
INSERT INTO "Departments" VALUES ("5", "Biology", "Department of Biological Sciences");
INSERT INTO "Degree_Programs" VALUES ("101", "1", "BSc Computer Science", "Undergraduate degree in computer science");
INSERT INTO "Degree_Programs" VALUES ("102", "1", "MSc Computer Science", "Graduate degree in computer science");
INSERT INTO "Degree_Programs" VALUES ("103", "1", "PhD Computer Science", "Doctoral degree in computer science");
INSERT INTO "Degree_Programs" VALUES ("104", "2", "BSc Mathematics", "Undergraduate degree in mathematics");
INSERT INTO "Degree_Programs" VALUES ("105", "2", "MSc Mathematics", "Graduate degree in mathematics");
INSERT INTO "Degree_Programs" VALUES ("106", "3", "BSc Physics", "Undergraduate degree in physics");
INSERT INTO "Degree_Programs" VALUES ("107", "3", "MSc Physics", "Graduate degree in physics");
INSERT INTO "Degree_Programs" VALUES ("108", "3", "PhD Physics", "Doctoral degree in physics");
INSERT INTO "Degree_Programs" VALUES ("109", "3", "Diploma Physics", "Diploma in physics");
INSERT INTO "Degree_Programs" VALUES ("110", "4", "BSc Chemistry", "Undergraduate degree in chemistry");
INSERT INTO "Degree_Programs" VALUES ("111", "5", "BSc Biology", "Undergraduate degree in biology");
INSERT INTO "Degree_Programs" VALUES ("112", "5", "MSc Biology", "Graduate degree in biology");
INSERT INTO "Degree_Programs" VALUES ("113", "5", "PhD Biology", "Doctoral degree in biology");
INSERT INTO "Degree_Programs" VALUES ("114", "5", "Diploma Biology", "Diploma in biology");
INSERT INTO "Degree_Programs" VALUES ("115", "5", "Certificate Biology", "Certificate in biology");