your message
This commit is contained in:
@ -440,6 +440,10 @@ model LessonProgress {
|
||||
|
||||
completedAt DateTime? @map("completed_at")
|
||||
quizScore Int? @map("quiz_score") // 0-100
|
||||
quizPassed Boolean @default(false) @map("quiz_passed")
|
||||
quizPassedAt DateTime? @map("quiz_passed_at")
|
||||
homeworkSubmitted Boolean @default(false) @map("homework_submitted")
|
||||
homeworkSubmittedAt DateTime? @map("homework_submitted_at")
|
||||
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
|
||||
@ -461,6 +465,7 @@ model CourseGroup {
|
||||
courseId String @map("course_id")
|
||||
name String
|
||||
description String? @db.Text
|
||||
isDefault Boolean @default(false) @map("is_default")
|
||||
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
@ -509,7 +514,7 @@ model GroupMessage {
|
||||
|
||||
model Homework {
|
||||
id String @id @default(uuid())
|
||||
lessonId String @map("lesson_id")
|
||||
lessonId String @unique @map("lesson_id")
|
||||
title String
|
||||
description String @db.Text
|
||||
dueDate DateTime? @map("due_date")
|
||||
@ -524,6 +529,12 @@ model Homework {
|
||||
@@map("homework")
|
||||
}
|
||||
|
||||
enum HomeworkReviewStatus {
|
||||
SUBMITTED
|
||||
AI_REVIEWED
|
||||
TEACHER_REVIEWED
|
||||
}
|
||||
|
||||
model HomeworkSubmission {
|
||||
id String @id @default(uuid())
|
||||
homeworkId String @map("homework_id")
|
||||
@ -531,12 +542,13 @@ model HomeworkSubmission {
|
||||
content String @db.Text
|
||||
|
||||
// AI grading
|
||||
aiScore Int? @map("ai_score") // 0-100
|
||||
aiScore Int? @map("ai_score") // 1-5
|
||||
aiFeedback String? @db.Text @map("ai_feedback")
|
||||
|
||||
// Teacher grading
|
||||
teacherScore Int? @map("teacher_score") // 0-100
|
||||
teacherScore Int? @map("teacher_score") // 1-5
|
||||
teacherFeedback String? @db.Text @map("teacher_feedback")
|
||||
reviewStatus HomeworkReviewStatus @default(SUBMITTED) @map("review_status")
|
||||
|
||||
submittedAt DateTime @default(now()) @map("submitted_at")
|
||||
gradedAt DateTime? @map("graded_at")
|
||||
|
||||
Reference in New Issue
Block a user