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", "Data Structures and Algorithms");
INSERT INTO "Courses" VALUES ("3", "Database Management Systems");
INSERT INTO "Courses" VALUES ("4", "Operating Systems");
INSERT INTO "Courses" VALUES ("5", "Web Development Fundamentals");
INSERT INTO "Courses" VALUES ("6", "Calculus I");
INSERT INTO "Courses" VALUES ("7", "Linear Algebra");
INSERT INTO "Courses" VALUES ("8", "Introduction to Psychology");
INSERT INTO "Courses" VALUES ("9", "Microeconomics");
INSERT INTO "Courses" VALUES ("10", "Art History I");
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 Business Administration");
INSERT INTO "Degree_Programs" VALUES ("5", "Doctor of Philosophy in Computer Science");
INSERT INTO "Departments" VALUES ("1", "Computer Science");
INSERT INTO "Departments" VALUES ("2", "Mathematics");
INSERT INTO "Departments" VALUES ("3", "Psychology");
INSERT INTO "Departments" VALUES ("4", "Economics");
INSERT INTO "Departments" VALUES ("5", "Art History");
INSERT INTO "Sections" VALUES ("101", "CS101-A", "Introduction to programming concepts using Python.");
INSERT INTO "Sections" VALUES ("102", "CS101-B", "Alternative section for Introduction to programming, focusing on Java.");
INSERT INTO "Sections" VALUES ("201", "CS201-A", "Covers fundamental data structures and algorithms.");
INSERT INTO "Sections" VALUES ("301", "CS301-A", "Explores relational database design and SQL.");
INSERT INTO "Sections" VALUES ("401", "CS401-A", "Study of operating system principles and design.");
INSERT INTO "Sections" VALUES ("501", "CS501-A", "Introduction to front-end and back-end web development.");
INSERT INTO "Sections" VALUES ("601", "MA101-A", "First course in differential and integral calculus.");
INSERT INTO "Sections" VALUES ("701", "MA201-A", "Introduction to vector spaces and linear transformations.");
INSERT INTO "Sections" VALUES ("801", "PS101-A", "Overview of major theories and research methods in psychology.");
INSERT INTO "Sections" VALUES ("901", "EC101-A", "Analysis of individual economic behavior and markets.");
INSERT INTO "Sections" VALUES ("1001", "AH101-A", "Survey of art from ancient to medieval periods.");
INSERT INTO "Sections" VALUES ("103", "CS101-C", "Online section for Introduction to programming.");
INSERT INTO "Sections" VALUES ("202", "CS201-B", "Advanced topics in data structures.");
INSERT INTO "Sections" VALUES ("302", "CS301-B", "Database administration and NoSQL databases.");
INSERT INTO "Sections" VALUES ("402", "CS401-B", "Operating systems security.");