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

CREATE TABLE "Transcript_Contents" (
"transcript_id" INT,
FOREIGN KEY ("transcript_id") REFERENCES "Transcripts"("transcript_id")
);

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





INSERT INTO "Transcripts" VALUES ("1", "2023-01-15 10:00:00");
INSERT INTO "Transcripts" VALUES ("2", "2023-01-16 11:30:00");
INSERT INTO "Transcripts" VALUES ("3", "2023-01-17 09:45:00");
INSERT INTO "Transcripts" VALUES ("4", "2023-01-18 14:20:00");
INSERT INTO "Transcripts" VALUES ("5", "2023-01-19 08:00:00");
INSERT INTO "Transcripts" VALUES ("6", "2023-01-20 15:15:00");
INSERT INTO "Transcript_Contents" VALUES ("1");
INSERT INTO "Transcript_Contents" VALUES ("1");
INSERT INTO "Transcript_Contents" VALUES ("1");
INSERT INTO "Transcript_Contents" VALUES ("2");
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 ("6");