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 "Courses" (
"course_id" INT,
"course_name" VARCHAR(255),
PRIMARY KEY ("course_id")
);

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", "engineering", "Department of Engineering and Technology");
INSERT INTO "Departments" VALUES ("2", "Humanities", "Department of Arts and Humanities");
INSERT INTO "Departments" VALUES ("3", "Sciences", "Department of Natural Sciences");
INSERT INTO "Departments" VALUES ("4", "Business", "Department of Business Administration");
INSERT INTO "Departments" VALUES ("5", "engineering", "Another Engineering Department Variant");
INSERT INTO "Degree_Programs" VALUES ("101", "1", "Mechanical Engineering", "Bachelor of Science in Mechanical Engineering");
INSERT INTO "Degree_Programs" VALUES ("102", "1", "Electrical Engineering", "Bachelor of Science in Electrical Engineering");
INSERT INTO "Degree_Programs" VALUES ("103", "1", "Civil Engineering", "Bachelor of Science in Civil Engineering");
INSERT INTO "Degree_Programs" VALUES ("104", "1", "Computer Engineering", "Bachelor of Science in Computer Engineering");
INSERT INTO "Degree_Programs" VALUES ("105", "2", "Philosophy", "Bachelor of Arts in Philosophy");
INSERT INTO "Degree_Programs" VALUES ("106", "3", "Biology", "Bachelor of Science in Biology");
INSERT INTO "Degree_Programs" VALUES ("107", "4", "Marketing", "Bachelor of Business Administration in Marketing");
INSERT INTO "Degree_Programs" VALUES ("108", "5", "Software Engineering", "Bachelor of Science in Software Engineering");
INSERT INTO "Degree_Programs" VALUES ("109", "5", "Environmental Engineering", "Bachelor of Science in Environmental Engineering");
INSERT INTO "Courses" VALUES ("201", "Thermodynamics");
INSERT INTO "Courses" VALUES ("202", "Circuit Analysis");
INSERT INTO "Courses" VALUES ("203", "Structural Analysis");
INSERT INTO "Courses" VALUES ("204", "Data Structures");
INSERT INTO "Courses" VALUES ("205", "Ethics");
INSERT INTO "Courses" VALUES ("206", "Genetics");
INSERT INTO "Courses" VALUES ("207", "Marketing Principles");
INSERT INTO "Courses" VALUES ("208", "Software Design");
INSERT INTO "Courses" VALUES ("209", "Environmental Science");