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),
"course_description" VARCHAR(255),
PRIMARY KEY ("course_id")
);

CREATE TABLE "Sections" (
"section_id" INT,
"section_name" VARCHAR(255),
"section_description" VARCHAR(255),
PRIMARY KEY ("section_id")
);

CREATE TABLE "Semesters" (
"semester_id" INT,
"semester_name" VARCHAR(255),
PRIMARY KEY ("semester_id")
);





INSERT INTO "Courses" VALUES ("1", "Mathematics", "Study of numbers and shapes");
INSERT INTO "Courses" VALUES ("2", "History", "Study of past events");
INSERT INTO "Courses" VALUES ("3", "Biology", "Study of living organisms");
INSERT INTO "Courses" VALUES ("4", "Computer Science", "Study of computation and information");
INSERT INTO "Courses" VALUES ("5", "Art", "Study of creative expression");
INSERT INTO "Sections" VALUES ("101", "Algebra", "Focus on algebraic expressions and equations");
INSERT INTO "Sections" VALUES ("102", "World History", "Overview of global historical events");
INSERT INTO "Sections" VALUES ("103", "Cell Biology", "Study of cell structure and function");
INSERT INTO "Sections" VALUES ("104", "Programming Basics", "Introduction to programming concepts");
INSERT INTO "Sections" VALUES ("105", "Painting", "Techniques and history of painting");
INSERT INTO "Sections" VALUES ("106", "Geometry", "Study of shapes, sizes, and properties of space");
INSERT INTO "Sections" VALUES ("107", "Modern History", "Study of history from 1900 onwards");
INSERT INTO "Sections" VALUES ("108", "Genetics", "Study of genes and heredity");
INSERT INTO "Sections" VALUES ("109", "Data Structures", "Study of data organization and manipulation");
INSERT INTO "Sections" VALUES ("110", "Sculpture", "Art of shaping materials into three-dimensional forms");
INSERT INTO "Semesters" VALUES ("1", "Fall 2023");
INSERT INTO "Semesters" VALUES ("2", "Spring 2024");
INSERT INTO "Semesters" VALUES ("3", "Summer 2024");