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 "Student_Enrolment" (
"student_enrolment_id" INT,
"other_details" VARCHAR(255),
PRIMARY KEY ("student_enrolment_id")
);

CREATE TABLE "Student_Enrolment_Courses" (
"student_course_id" INT,
PRIMARY KEY ("student_course_id")
);

CREATE TABLE "Students" (
"student_id" INT,
"other_student_details" VARCHAR(255),
PRIMARY KEY ("student_id")
);

CREATE TABLE "Transcripts" (
"transcript_id" INT,
"transcript_date" DATETIME,
"other_details" VARCHAR(255),
PRIMARY KEY ("transcript_id")
);





INSERT INTO "Student_Enrolment" VALUES ("1", "Enrolment details for student 1");
INSERT INTO "Student_Enrolment" VALUES ("2", "Enrolment details for student 2");
INSERT INTO "Student_Enrolment" VALUES ("3", "Enrolment details for student 3");
INSERT INTO "Student_Enrolment" VALUES ("4", "Enrolment details for student 4");
INSERT INTO "Student_Enrolment" VALUES ("5", "Enrolment details for student 5");
INSERT INTO "Student_Enrolment_Courses" VALUES ("101");
INSERT INTO "Student_Enrolment_Courses" VALUES ("102");
INSERT INTO "Student_Enrolment_Courses" VALUES ("103");
INSERT INTO "Student_Enrolment_Courses" VALUES ("104");
INSERT INTO "Student_Enrolment_Courses" VALUES ("105");
INSERT INTO "Students" VALUES ("1", "Student 1 details: John Doe, ID 12345");
INSERT INTO "Students" VALUES ("2", "Student 2 details: Jane Smith, ID 67890");
INSERT INTO "Students" VALUES ("3", "Student 3 details: Peter Jones, ID 11223");
INSERT INTO "Students" VALUES ("4", "Student 4 details: Alice Brown, ID 44556");
INSERT INTO "Students" VALUES ("5", "Student 5 details: Bob White, ID 77889");
INSERT INTO "Transcripts" VALUES ("1", "2023-01-15 10:00:00", "Transcript for John Doe, Semester 1, GPA 3.5");
INSERT INTO "Transcripts" VALUES ("2", "2022-11-20 14:30:00", "Transcript for Jane Smith, Fall 2022, GPA 3.8");
INSERT INTO "Transcripts" VALUES ("3", "2023-03-01 09:15:00", "Transcript for Peter Jones, Spring 2023, GPA 3.2");
INSERT INTO "Transcripts" VALUES ("4", "2022-10-05 11:00:00", "Transcript for Alice Brown, Early Release, GPA 3.9");
INSERT INTO "Transcripts" VALUES ("5", "2023-02-10 16:00:00", "Transcript for Bob White, Mid-term grades, GPA 3.0");
INSERT INTO "Transcripts" VALUES ("6", "2022-09-01 08:00:00", "Transcript for John Doe, Initial Enrollment, No grades yet");
INSERT INTO "Transcripts" VALUES ("7", "2023-01-01 00:00:00", "Transcript for Jane Smith, Special Request, Course completion");