feat: Implement lesson attempt tracking, retry functionality, and max attempt limits for interactive blocks.

This commit is contained in:
2025-12-22 15:47:18 -03:00
parent 32f71852d9
commit f592f78b6c
16 changed files with 325 additions and 178 deletions
+3
View File
@@ -34,6 +34,8 @@ pub struct Lesson {
pub metadata: Option<serde_json::Value>,
pub grading_category_id: Option<Uuid>,
pub is_graded: bool,
pub max_attempts: Option<i32>,
pub allow_retry: bool,
pub position: i32,
pub created_at: DateTime<Utc>,
}
@@ -55,6 +57,7 @@ pub struct UserGrade {
pub course_id: Uuid,
pub lesson_id: Uuid,
pub score: f32, // 0.0 to 1.0
pub attempts_count: i32,
pub metadata: Option<serde_json::Value>,
pub created_at: DateTime<Utc>,
}