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),
"course_description" VARCHAR(255),
"other_details" 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_description" VARCHAR(255),
PRIMARY KEY ("section_id")
);





INSERT INTO "Courses" VALUES ("1", "math", "This course covers algebra, calculus, and geometry fundamentals.", "Includes weekly quizzes and a final exam.");
INSERT INTO "Courses" VALUES ("2", "Physics", "Introduction to classical mechanics and thermodynamics.", "Lab sessions every Friday.");
INSERT INTO "Courses" VALUES ("3", "History", "World history from ancient to modern times.", "Includes essay assignments.");
INSERT INTO "Courses" VALUES ("4", "Computer Science", "Programming basics and data structures.", "Project-based learning.");
INSERT INTO "Degree_Programs" VALUES ("1", "Bachelor of Science in Mathematics");
INSERT INTO "Degree_Programs" VALUES ("2", "Bachelor of Science in Physics");
INSERT INTO "Degree_Programs" VALUES ("3", "Bachelor of Arts in History");
INSERT INTO "Degree_Programs" VALUES ("4", "Bachelor of Science in Computer Science");
INSERT INTO "Departments" VALUES ("1", "Mathematics Department");
INSERT INTO "Departments" VALUES ("2", "Physics Department");
INSERT INTO "Departments" VALUES ("3", "History Department");
INSERT INTO "Departments" VALUES ("4", "Computer Science Department");
INSERT INTO "Sections" VALUES ("1", "Morning Section");
INSERT INTO "Sections" VALUES ("2", "Afternoon Section");
INSERT INTO "Sections" VALUES ("3", "Evening Section");
INSERT INTO "Sections" VALUES ("4", "Weekend Section");