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),
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", "engineering", "Engineering department focusing on various engineering disciplines");
INSERT INTO "Departments" VALUES ("2", "Humanities", "Department of humanities and social sciences");
INSERT INTO "Departments" VALUES ("3", "Sciences", "Natural and physical sciences department");
INSERT INTO "Departments" VALUES ("4", "Business", "Business and management studies department");
INSERT INTO "Departments" VALUES ("5", "Arts", "Fine arts and performing arts department");
INSERT INTO "Degree_Programs" VALUES ("101", "1", "Mechanical Engineering");
INSERT INTO "Degree_Programs" VALUES ("102", "1", "Electrical Engineering");
INSERT INTO "Degree_Programs" VALUES ("103", "1", "Civil Engineering");
INSERT INTO "Degree_Programs" VALUES ("104", "1", "Computer Engineering");
INSERT INTO "Degree_Programs" VALUES ("105", "2", "Philosophy");
INSERT INTO "Degree_Programs" VALUES ("106", "2", "History");
INSERT INTO "Degree_Programs" VALUES ("107", "3", "Biology");
INSERT INTO "Degree_Programs" VALUES ("108", "3", "Chemistry");
INSERT INTO "Degree_Programs" VALUES ("109", "4", "Business Administration");
INSERT INTO "Degree_Programs" VALUES ("110", "4", "Marketing");
INSERT INTO "Degree_Programs" VALUES ("111", "5", "Visual Arts");
INSERT INTO "Degree_Programs" VALUES ("112", "5", "Music");