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 "Addresses" (
"address_id" INT,
"city" VARCHAR(255),
"zip_postcode" VARCHAR(20),
PRIMARY KEY ("address_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 "Addresses" VALUES ("1", "Port Chelsea", "12345");
INSERT INTO "Addresses" VALUES ("2", "North Haven", "54321");
INSERT INTO "Addresses" VALUES ("3", "Eastwood", "67890");
INSERT INTO "Addresses" VALUES ("4", "Port Chelsea", "12346");
INSERT INTO "Addresses" VALUES ("5", "Westfield", "11223");
INSERT INTO "Addresses" VALUES ("6", "Southport", "33445");
INSERT INTO "Addresses" VALUES ("7", "Port Chelsea", "12347");
INSERT INTO "Degree_Programs" VALUES ("1", "Computer Science");
INSERT INTO "Degree_Programs" VALUES ("2", "Mechanical Engineering");
INSERT INTO "Degree_Programs" VALUES ("3", "Business Administration");
INSERT INTO "Departments" VALUES ("1", "Engineering");
INSERT INTO "Departments" VALUES ("2", "Business");
INSERT INTO "Departments" VALUES ("3", "Arts");
INSERT INTO "Semesters" VALUES ("1", "Fall 2023");
INSERT INTO "Semesters" VALUES ("2", "Spring 2024");
INSERT INTO "Semesters" VALUES ("3", "Summer 2024");