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 "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 "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 ("1001", "2023-01-15 10:00:00");
INSERT INTO "Transcripts" VALUES ("1002", "2023-03-20 15:30:00");
INSERT INTO "Transcripts" VALUES ("1003", "2023-05-10 09:45:00");
INSERT INTO "Transcripts" VALUES ("1004", "2023-07-01 12:00:00");
INSERT INTO "Transcripts" VALUES ("1005", "2023-07-01 12:00:01");
INSERT INTO "Transcripts" VALUES ("1006", "2023-06-25 08:00:00");
INSERT INTO "Transcripts" VALUES ("1007", "2023-04-15 14:20:00");
INSERT INTO "Transcripts" VALUES ("1008", "2023-02-28 16:10:00");
INSERT INTO "Transcripts" VALUES ("1009", "2023-07-01 11:59:59");
INSERT INTO "Transcripts" VALUES ("1010", "2023-01-01 00:00:00");