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 Computer Science");
INSERT INTO "Courses" VALUES ("2", "Calculus I");
INSERT INTO "Courses" VALUES ("3", "English Literature");
INSERT INTO "Courses" VALUES ("4", "Organic Chemistry");
INSERT INTO "Courses" VALUES ("5", "Microeconomics");
INSERT INTO "Courses" VALUES ("6", "World History");
INSERT INTO "Courses" VALUES ("7", "Physics I");
INSERT INTO "Courses" VALUES ("8", "Art History");
INSERT INTO "Courses" VALUES ("9", "Data Structures");
INSERT INTO "Courses" VALUES ("10", "Linear Algebra");
INSERT INTO "Degree_Programs" VALUES ("1", "Bachelor of Science in Computer Science");
INSERT INTO "Degree_Programs" VALUES ("2", "Bachelor of Arts in English");
INSERT INTO "Degree_Programs" VALUES ("3", "Bachelor of Science in Chemistry");
INSERT INTO "Degree_Programs" VALUES ("4", "Bachelor of Arts in History");
INSERT INTO "Degree_Programs" VALUES ("5", "Bachelor of Science in Economics");
INSERT INTO "Degree_Programs" VALUES ("6", "Bachelor of Fine Arts");
INSERT INTO "Degree_Programs" VALUES ("7", "Bachelor of Science in Physics");
INSERT INTO "Degree_Programs" VALUES ("8", "Bachelor of Science in Mathematics");
INSERT INTO "Degree_Programs" VALUES ("9", "Bachelor of Arts in Philosophy");
INSERT INTO "Degree_Programs" VALUES ("10", "Bachelor of Science in Biology");
INSERT INTO "Departments" VALUES ("1", "Computer Science");
INSERT INTO "Departments" VALUES ("2", "Mathematics");
INSERT INTO "Departments" VALUES ("3", "English");
INSERT INTO "Departments" VALUES ("4", "Chemistry");
INSERT INTO "Departments" VALUES ("5", "Economics");
INSERT INTO "Departments" VALUES ("6", "History");
INSERT INTO "Departments" VALUES ("7", "Physics");
INSERT INTO "Departments" VALUES ("8", "Art");
INSERT INTO "Departments" VALUES ("9", "Philosophy");
INSERT INTO "Departments" VALUES ("10", "Biology");
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");