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 "Semesters" (
"semester_id" INT,
"semester_name" VARCHAR(255),
PRIMARY KEY ("semester_id")
);





INSERT INTO "Courses" VALUES ("1", "Introduction to Psychology");
INSERT INTO "Courses" VALUES ("2", "Advanced Calculus");
INSERT INTO "Courses" VALUES ("3", "Modern Art History");
INSERT INTO "Courses" VALUES ("4", "Organic Chemistry");
INSERT INTO "Courses" VALUES ("5", "Data Structures");
INSERT INTO "Courses" VALUES ("6", "Quantum Physics");
INSERT INTO "Courses" VALUES ("7", "Creative Writing");
INSERT INTO "Courses" VALUES ("8", "Microeconomics");
INSERT INTO "Courses" VALUES ("9", "Sociology of Education");
INSERT INTO "Courses" VALUES ("10", "Environmental Science");
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", "Master of Science in Chemistry");
INSERT INTO "Degree_Programs" VALUES ("4", "Doctor of Philosophy in Physics");
INSERT INTO "Degree_Programs" VALUES ("5", "Bachelor of Science in Biology");
INSERT INTO "Degree_Programs" VALUES ("6", "Master of Arts in History");
INSERT INTO "Degree_Programs" VALUES ("7", "Bachelor of Science in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("8", "NULL");
INSERT INTO "Degree_Programs" VALUES ("9", "Associate Degree in Business Administration");
INSERT INTO "Degree_Programs" VALUES ("10", "Diploma in Graphic Design");
INSERT INTO "Degree_Programs" VALUES ("11", "Bachelor of Science in Nursing");
INSERT INTO "Degree_Programs" VALUES ("12", "Master of Business Administration");
INSERT INTO "Degree_Programs" VALUES ("13", "Doctor of Medicine");
INSERT INTO "Degree_Programs" VALUES ("14", "Bachelor of Fine Arts");
INSERT INTO "Degree_Programs" VALUES ("15", "Bachelor of Science in Environmental Science");
INSERT INTO "Degree_Programs" VALUES ("16", "Master of Science in Data Science");
INSERT INTO "Degree_Programs" VALUES ("17", "Bachelor of Arts in Psychology");
INSERT INTO "Departments" VALUES ("1", "Computer Science");
INSERT INTO "Departments" VALUES ("2", "Psychology");
INSERT INTO "Departments" VALUES ("3", "Chemistry");
INSERT INTO "Departments" VALUES ("4", "Physics");
INSERT INTO "Departments" VALUES ("5", "Biology");
INSERT INTO "Departments" VALUES ("6", "History");
INSERT INTO "Departments" VALUES ("7", "Business Administration");
INSERT INTO "Departments" VALUES ("8", "Graphic Design");
INSERT INTO "Departments" VALUES ("9", "Nursing");
INSERT INTO "Departments" VALUES ("10", "Environmental Science");
INSERT INTO "Semesters" VALUES ("1", "Fall 2023");
INSERT INTO "Semesters" VALUES ("2", "Spring 2024");
INSERT INTO "Semesters" VALUES ("3", "Summer 2024");
INSERT INTO "Semesters" VALUES ("4", "Fall 2024");
INSERT INTO "Semesters" VALUES ("5", "Spring 2025");