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

CREATE TABLE "Degree_Programs" (
"degree_program_id" INT,
"degree_summary_name" VARCHAR(255),
PRIMARY KEY ("degree_program_id")
);

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





INSERT INTO "Courses" VALUES ("1", "Calculus I", "Introduction to differential and integral calculus");
INSERT INTO "Courses" VALUES ("2", "Calculus II", "Continuation of Calculus I with series and multivariable calculus");
INSERT INTO "Courses" VALUES ("3", "Linear Algebra", "Matrix theory and linear algebra with applications");
INSERT INTO "Courses" VALUES ("4", "Abstract Algebra", "Groups, rings, and fields theory");
INSERT INTO "Courses" VALUES ("5", "Statistics", "Introduction to probability and statistics");
INSERT INTO "Courses" VALUES ("6", "English Literature", "Study of classic and modern English literature");
INSERT INTO "Courses" VALUES ("7", "Physics I", "Mechanics and thermodynamics");
INSERT INTO "Courses" VALUES ("8", "Discrete Mathematics", "Logic, set theory, combinatorics, and graph theory");
INSERT INTO "Courses" VALUES ("9", "Mathematical Logic", "Formal logic and proof techniques");
INSERT INTO "Courses" VALUES ("10", "Philosophy", "Introduction to philosophy and critical thinking");
INSERT INTO "Degree_Programs" VALUES ("1", "Bachelor of Science in Mathematics");
INSERT INTO "Degree_Programs" VALUES ("2", "Bachelor of Arts in English");
INSERT INTO "Degree_Programs" VALUES ("3", "Bachelor of Science in Physics");
INSERT INTO "Sections" VALUES ("1", "Math Department");
INSERT INTO "Sections" VALUES ("2", "English Department");
INSERT INTO "Sections" VALUES ("3", "Physics Department");
INSERT INTO "Sections" VALUES ("4", "General Studies");