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

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

CREATE TABLE "Sections" (
"section_id" INT,
"section_name" VARCHAR(255),
"section_description" VARCHAR(255),
PRIMARY KEY ("section_id")
);





INSERT INTO "Courses" VALUES ("1", "Introduction to Programming");
INSERT INTO "Courses" VALUES ("2", "Database Management");
INSERT INTO "Courses" VALUES ("3", "Web Development");
INSERT INTO "Courses" VALUES ("4", "Data Structures");
INSERT INTO "Courses" VALUES ("5", "Operating Systems");
INSERT INTO "Degree_Programs" VALUES ("1", "Computer Science");
INSERT INTO "Degree_Programs" VALUES ("2", "Information Technology");
INSERT INTO "Degree_Programs" VALUES ("3", "Software Engineering");
INSERT INTO "Degree_Programs" VALUES ("4", "Data Science");
INSERT INTO "Degree_Programs" VALUES ("5", "Cybersecurity");
INSERT INTO "Departments" VALUES ("1", "Computer Science Department");
INSERT INTO "Departments" VALUES ("2", "Information Systems Department");
INSERT INTO "Departments" VALUES ("3", "Electrical Engineering Department");
INSERT INTO "Departments" VALUES ("4", "Mathematics Department");
INSERT INTO "Departments" VALUES ("5", "Physics Department");
INSERT INTO "Sections" VALUES ("1", "h", "This is the description for section h.");
INSERT INTO "Sections" VALUES ("2", "Section A", "General introduction to the course material.");
INSERT INTO "Sections" VALUES ("3", "Section B", "Advanced topics and practical applications.");
INSERT INTO "Sections" VALUES ("4", "Section C", "Review of fundamental concepts.");
INSERT INTO "Sections" VALUES ("5", "Section D", "Project-based learning section.");
INSERT INTO "Sections" VALUES ("6", "h_alt", "An alternative section also named h.");
INSERT INTO "Sections" VALUES ("7", "h", "Description for uppercase H section.");
INSERT INTO "Sections" VALUES ("8", "section h", "Another section with h in its name.");
INSERT INTO "Sections" VALUES ("9", "h", "Section name with trailing space.");
INSERT INTO "Sections" VALUES ("10", "h", "Section name with leading space.");