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 UNIQUE,
"department_id" INT,
"degree_summary_name" 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")
);

CREATE TABLE "Student_Enrolment" (
"student_enrolment_id" INT,
"student_id" INT,
PRIMARY KEY ("student_enrolment_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", "Bachelor of Science in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("102", "1", "Master of Science in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("103", "1", "PhD in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("104", "2", "Bachelor of Science in Mathematics");
INSERT INTO "Degree_Programs" VALUES ("105", "2", "Master of Science in Mathematics");
INSERT INTO "Degree_Programs" VALUES ("106", "3", "Bachelor of Science in Physics");
INSERT INTO "Degree_Programs" VALUES ("107", "3", "Master of Science in Physics");
INSERT INTO "Degree_Programs" VALUES ("108", "3", "PhD in Physics");
INSERT INTO "Degree_Programs" VALUES ("109", "3", "Certificate in Astrophysics");
INSERT INTO "Degree_Programs" VALUES ("110", "4", "Bachelor of Science in Chemistry");
INSERT INTO "Degree_Programs" VALUES ("111", "5", "Bachelor of Science in Biology");
INSERT INTO "Student_Enrolment" VALUES ("1001", "5001");
INSERT INTO "Student_Enrolment" VALUES ("1002", "5002");
INSERT INTO "Student_Enrolment" VALUES ("1003", "5003");
INSERT INTO "Student_Enrolment" VALUES ("1004", "5004");
INSERT INTO "Student_Enrolment" VALUES ("1005", "5005");