feat(api): add /submit-quiz-attempt endpoint (#57201)

This commit is contained in:
Huyen Nguyen
2024-12-07 01:45:12 +07:00
committed by GitHub
parent ce8b971073
commit ba70f5d253
9 changed files with 245 additions and 1 deletions
+7
View File
@@ -69,6 +69,12 @@ type SavedChallenge {
lastSavedDate Float
}
type QuizAttempt {
challengeId String
quizId String
timestamp Float
}
/// Corresponds to the `user` collection.
model user {
id String @id @default(auto()) @map("_id") @db.ObjectId
@@ -76,6 +82,7 @@ model user {
acceptedPrivacyTerms Boolean
completedChallenges CompletedChallenge[]
completedExams CompletedExam[] // Undefined
quizAttempts QuizAttempt[] // Undefined
currentChallengeId String?
donationEmails String[] // Undefined | String[] (only possible for built in Types like String)
email String