From 082bff570bfebba2b2180c7f414544f3147bbda6 Mon Sep 17 00:00:00 2001 From: Shaun Hamilton Date: Thu, 9 Oct 2025 06:05:44 +0200 Subject: [PATCH] feat(api): add moderation schema challengesAwarded field (#62490) --- api/prisma/exam-environment.prisma | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/prisma/exam-environment.prisma b/api/prisma/exam-environment.prisma index 1d27c548842..2037e223fec 100644 --- a/api/prisma/exam-environment.prisma +++ b/api/prisma/exam-environment.prisma @@ -234,10 +234,13 @@ model ExamEnvironmentExamModeration { moderatorId String? @db.ObjectId /// Date the exam attempt expired - submissionDate DateTime @default(now()) @db.Date + submissionDate DateTime @default(now()) @db.Date + /// Whether the `challengeId` for the `ExamEnvironmentChallenge` has been awarded to the user + challengesAwarded Boolean @default(false) + /// Version of the record /// The default must be incremented by 1, if anything in the schema changes - version Int @default(2) + version Int @default(2) // Relations examAttempt ExamEnvironmentExamAttempt @relation(fields: [examAttemptId], references: [id], onDelete: Cascade)