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,
"degree_summary_name" VARCHAR(255),
"degree_summary_description" VARCHAR(255),
PRIMARY KEY ("degree_program_id")
);

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





INSERT INTO "Courses" VALUES ("1", "Introduction to Programming");
INSERT INTO "Courses" VALUES ("2", "Advanced Mathematics");
INSERT INTO "Courses" VALUES ("3", "English Literature");
INSERT INTO "Courses" VALUES ("4", "Computer Networks");
INSERT INTO "Courses" VALUES ("5", "Data Structures");
INSERT INTO "Courses" VALUES ("6", "History of Art");
INSERT INTO "Courses" VALUES ("7", "Computational Theory");
INSERT INTO "Courses" VALUES ("8", "Physics");
INSERT INTO "Courses" VALUES ("9", "Software Engineering");
INSERT INTO "Courses" VALUES ("10", "Computer Graphics");
INSERT INTO "Degree_Programs" VALUES ("1", "BSc Computer Science", "Bachelor of Science in Computer Science focusing on software development and algorithms");
INSERT INTO "Degree_Programs" VALUES ("2", "BA English", "Bachelor of Arts in English Literature and Language");
INSERT INTO "Degree_Programs" VALUES ("3", "BSc Mathematics", "Bachelor of Science in Mathematics with applications in computing");
INSERT INTO "Degree_Programs" VALUES ("4", "BSc Computing", "Bachelor of Science in Computing covering hardware and software systems");
INSERT INTO "Degree_Programs" VALUES ("5", "BA History", "Bachelor of Arts in History and Cultural Studies");
INSERT INTO "Degree_Programs" VALUES ("6", "BEng Computer Engineering", "Bachelor of Engineering in Computer Engineering focusing on hardware design");
INSERT INTO "Degree_Programs" VALUES ("7", "BSc Data Science", "Bachelor of Science in Data Science and Analytics");
INSERT INTO "Departments" VALUES ("1", "Computer Science", "Department focusing on software, algorithms, and programming languages");
INSERT INTO "Departments" VALUES ("2", "computer science", "Lowercase department name to test case sensitivity");
INSERT INTO "Departments" VALUES ("3", "Computing", "Department covering both hardware and software computing topics");
INSERT INTO "Departments" VALUES ("4", "Computers and Information Systems", "Department specializing in computer systems and information technology");
INSERT INTO "Departments" VALUES ("5", "Electrical Engineering", "Department focusing on electrical systems and circuits");
INSERT INTO "Departments" VALUES ("6", "Mechanical Engineering", "Department specializing in mechanical systems and design");
INSERT INTO "Departments" VALUES ("7", "Computer Engineering", "Department combining electrical engineering and computer science");
INSERT INTO "Departments" VALUES ("8", "Business Administration", "Department focusing on business and management studies");
INSERT INTO "Departments" VALUES ("9", "computers", "Department with plural lowercase to test partial matching");
INSERT INTO "Departments" VALUES ("10", "Computational Biology", "Department applying computing techniques to biological data");