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-02-20 11:30:00");
INSERT INTO "Transcripts" VALUES ("3", "2023-03-10 09:45:00");
INSERT INTO "Transcripts" VALUES ("4", "2023-04-05 14:20:00");
INSERT INTO "Transcripts" VALUES ("5", "2023-05-01 08:00: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 ("3");
INSERT INTO "Transcript_Contents" VALUES ("3");
INSERT INTO "Transcript_Contents" VALUES ("3");
INSERT INTO "Transcript_Contents" VALUES ("4");
INSERT INTO "Transcript_Contents" VALUES ("5");
INSERT INTO "Student_Enrolment_Courses" VALUES ("101", "201", "301");
INSERT INTO "Student_Enrolment_Courses" VALUES ("102", "202", "302");
INSERT INTO "Student_Enrolment_Courses" VALUES ("103", "203", "303");
INSERT INTO "Student_Enrolment_Courses" VALUES ("104", "204", "304");
INSERT INTO "Student_Enrolment_Courses" VALUES ("105", "205", "305");
INSERT INTO "Student_Enrolment_Courses" VALUES ("106", "206", "306");
INSERT INTO "Student_Enrolment_Courses" VALUES ("107", "207", "307");
INSERT INTO "Student_Enrolment_Courses" VALUES ("108", "208", "308");
INSERT INTO "Student_Enrolment_Courses" VALUES ("109", "209", "309");
INSERT INTO "Student_Enrolment_Courses" VALUES ("110", "210", "310");