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 A details");
INSERT INTO "Students" VALUES ("2", "Student B details");
INSERT INTO "Students" VALUES ("3", "Student C details");
INSERT INTO "Students" VALUES ("4", "Student D details");
INSERT INTO "Students" VALUES ("5", "Student E details");
INSERT INTO "Transcripts" VALUES ("1", "2023-01-15 10:00:00", "Initial transcript for Student A");
INSERT INTO "Transcripts" VALUES ("2", "2023-03-01 14:30:00", "Mid-term transcript for Student B");
INSERT INTO "Transcripts" VALUES ("3", "2022-11-20 09:00:00", "Early transcript for Student C");
INSERT INTO "Transcripts" VALUES ("4", "2023-01-15 10:00:01", "Another transcript for Student A, slightly later");
INSERT INTO "Transcripts" VALUES ("5", "2023-05-10 11:00:00", "Final transcript for Student D");
INSERT INTO "Transcripts" VALUES ("6", "2022-11-20 08:59:59", "Transcript for Student E, just before Student C");
INSERT INTO "Transcripts" VALUES ("7", "2023-01-15 09:59:59", "Transcript for Student F, just before Student A");