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





INSERT INTO "Courses" VALUES ("1", "Introduction to Programming");
INSERT INTO "Courses" VALUES ("2", "Data Structures and Algorithms");
INSERT INTO "Courses" VALUES ("3", "Database Management Systems");
INSERT INTO "Courses" VALUES ("4", "Operating Systems");
INSERT INTO "Courses" VALUES ("5", "Calculus I");
INSERT INTO "Courses" VALUES ("6", "Linear Algebra");
INSERT INTO "Courses" VALUES ("7", "Introduction to Psychology");
INSERT INTO "Courses" VALUES ("8", "Microeconomics");
INSERT INTO "Courses" VALUES ("9", "Organic Chemistry I");
INSERT INTO "Courses" VALUES ("10", "General Physics");
INSERT INTO "Degree_Programs" VALUES ("1", "Bachelor of Science in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("2", "Bachelor of Arts in Psychology");
INSERT INTO "Degree_Programs" VALUES ("3", "Bachelor of Science in Mathematics");
INSERT INTO "Degree_Programs" VALUES ("4", "Master of Science in Data Science");
INSERT INTO "Degree_Programs" VALUES ("5", "Doctor of Philosophy in Economics");
INSERT INTO "Degree_Programs" VALUES ("6", "Associate of Arts in General Studies");
INSERT INTO "Degree_Programs" VALUES ("7", "Bachelor of Science in Chemistry");
INSERT INTO "Degree_Programs" VALUES ("8", "Bachelor of Science in Physics");
INSERT INTO "Departments" VALUES ("1", "Computer Science");
INSERT INTO "Departments" VALUES ("2", "Psychology");
INSERT INTO "Departments" VALUES ("3", "Mathematics");
INSERT INTO "Departments" VALUES ("4", "Economics");
INSERT INTO "Departments" VALUES ("5", "Chemistry");
INSERT INTO "Departments" VALUES ("6", "Physics");
INSERT INTO "Departments" VALUES ("7", "General Studies");
INSERT INTO "Sections" VALUES ("1", "Fall 2023 - Section A");
INSERT INTO "Sections" VALUES ("2", "Fall 2023 - Section B");
INSERT INTO "Sections" VALUES ("3", "Spring 2024 - Section A");
INSERT INTO "Sections" VALUES ("4", "Spring 2024 - Section B");
INSERT INTO "Sections" VALUES ("5", "Summer 2024 - Online");
INSERT INTO "Sections" VALUES ("6", "Fall 2024 - Section C");