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", "Calculus I");
INSERT INTO "Courses" VALUES ("5", "Linear Algebra");
INSERT INTO "Courses" VALUES ("6", "Operating Systems");
INSERT INTO "Courses" VALUES ("7", "Web Development");
INSERT INTO "Courses" VALUES ("8", "Artificial Intelligence");
INSERT INTO "Courses" VALUES ("9", "Discrete Mathematics");
INSERT INTO "Courses" VALUES ("10", "Computer Networks");
INSERT INTO "Degree_Programs" VALUES ("1", "Bachelor of Science in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("2", "Master of Science in Data Science");
INSERT INTO "Degree_Programs" VALUES ("3", "Ph.D. in Artificial Intelligence");
INSERT INTO "Degree_Programs" VALUES ("4", "Bachelor of Arts in Mathematics");
INSERT INTO "Degree_Programs" VALUES ("5", "Master of Engineering in Software Engineering");
INSERT INTO "Degree_Programs" VALUES ("6", "Bachelor of Science in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("7", "Associate of Science in Information Technology");
INSERT INTO "Degree_Programs" VALUES ("8", "Doctor of Philosophy in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("9", "Bachelor of Science in Data Science");
INSERT INTO "Degree_Programs" VALUES ("10", "Master of Science in Cybersecurity");
INSERT INTO "Departments" VALUES ("1", "Computer Science Department");
INSERT INTO "Departments" VALUES ("2", "Mathematics Department");
INSERT INTO "Departments" VALUES ("3", "Electrical Engineering Department");
INSERT INTO "Departments" VALUES ("4", "Information Technology Department");
INSERT INTO "Departments" VALUES ("5", "Software Engineering Department");
INSERT INTO "Departments" VALUES ("6", "Data Science Department");
INSERT INTO "Departments" VALUES ("7", "Cybersecurity Department");
INSERT INTO "Departments" VALUES ("8", "Physics Department");
INSERT INTO "Departments" VALUES ("9", "Chemistry Department");
INSERT INTO "Departments" VALUES ("10", "Biology Department");
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 - Section A");
INSERT INTO "Sections" VALUES ("6", "Fall 2024 - Section C");
INSERT INTO "Sections" VALUES ("7", "Spring 2025 - Section D");
INSERT INTO "Sections" VALUES ("8", "Summer 2025 - Section B");
INSERT INTO "Sections" VALUES ("9", "Fall 2025 - Section E");
INSERT INTO "Sections" VALUES ("10", "Spring 2026 - Section F");