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_Courses" (
"student_course_id" INT,
"course_id" INT,
PRIMARY KEY ("student_course_id")
);

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

CREATE TABLE "Transcript_Contents" (
"student_course_id" INT,
FOREIGN KEY ("student_course_id") REFERENCES "Student_Enrolment_Courses"("student_course_id")
);

CREATE TABLE "Transcripts" (
"transcript_id" INT UNIQUE,
"transcript_date" DATETIME,
PRIMARY KEY ("transcript_id")
);





INSERT INTO "Student_Enrolment_Courses" VALUES ("1", "101");
INSERT INTO "Student_Enrolment_Courses" VALUES ("2", "102");
INSERT INTO "Student_Enrolment_Courses" VALUES ("3", "103");
INSERT INTO "Student_Enrolment_Courses" VALUES ("4", "104");
INSERT INTO "Student_Enrolment_Courses" VALUES ("5", "105");
INSERT INTO "Student_Enrolment_Courses" VALUES ("6", "106");
INSERT INTO "Student_Enrolment_Courses" VALUES ("7", "107");
INSERT INTO "Student_Enrolment_Courses" VALUES ("8", "108");
INSERT INTO "Student_Enrolment_Courses" VALUES ("9", "109");
INSERT INTO "Student_Enrolment_Courses" VALUES ("10", "110");
INSERT INTO "Students" VALUES ("1");
INSERT INTO "Students" VALUES ("2");
INSERT INTO "Students" VALUES ("3");
INSERT INTO "Students" VALUES ("4");
INSERT INTO "Students" VALUES ("5");
INSERT INTO "Students" VALUES ("6");
INSERT INTO "Students" VALUES ("7");
INSERT INTO "Students" VALUES ("8");
INSERT INTO "Students" VALUES ("9");
INSERT INTO "Students" VALUES ("10");
INSERT INTO "Transcript_Contents" VALUES ("1");
INSERT INTO "Transcript_Contents" VALUES ("2");
INSERT INTO "Transcript_Contents" VALUES ("3");
INSERT INTO "Transcript_Contents" VALUES ("4");
INSERT INTO "Transcript_Contents" VALUES ("5");
INSERT INTO "Transcript_Contents" VALUES ("6");
INSERT INTO "Transcript_Contents" VALUES ("7");
INSERT INTO "Transcript_Contents" VALUES ("8");
INSERT INTO "Transcript_Contents" VALUES ("9");
INSERT INTO "Transcript_Contents" VALUES ("10");
INSERT INTO "Transcripts" VALUES ("1", "2023-01-15 10:00:00");
INSERT INTO "Transcripts" VALUES ("2", "2023-01-15 11:00:00");
INSERT INTO "Transcripts" VALUES ("3", "2023-02-28 14:30:00");
INSERT INTO "Transcripts" VALUES ("4", "2023-03-01 09:00:00");
INSERT INTO "Transcripts" VALUES ("5", "2023-03-15 16:00:00");
INSERT INTO "Transcripts" VALUES ("6", "2023-04-30 12:00:00");
INSERT INTO "Transcripts" VALUES ("7", "2023-05-01 08:00:00");
INSERT INTO "Transcripts" VALUES ("8", "2023-06-15 13:00:00");
INSERT INTO "Transcripts" VALUES ("9", "2023-07-31 17:00:00");
INSERT INTO "Transcripts" VALUES ("10", "2023-08-01 10:00:00");
INSERT INTO "Transcripts" VALUES ("11", "2023-08-15 11:00:00");
INSERT INTO "Transcripts" VALUES ("12", "2023-09-30 14:00:00");
INSERT INTO "Transcripts" VALUES ("13", "2023-10-01 09:30:00");
INSERT INTO "Transcripts" VALUES ("14", "2023-11-15 15:00:00");
INSERT INTO "Transcripts" VALUES ("15", "2023-12-31 23:59:59");
INSERT INTO "Transcripts" VALUES ("16", "2024-01-01 00:00:01");
INSERT INTO "Transcripts" VALUES ("17", "2024-01-15 10:00:00");
INSERT INTO "Transcripts" VALUES ("18", "2024-02-29 12:00:00");
INSERT INTO "Transcripts" VALUES ("19", "2024-03-01 09:00:00");
INSERT INTO "Transcripts" VALUES ("20", "2024-03-15 16:00:00");