Closed ahmedradwan21 closed 2 months ago
Description: Implement a feature to calculate and return the average progress of tasks within a course.
Expected Endpoints:
GET /courses/:courseId/tasks/progress
Updated Model: UserTaskProgress
UserTaskProgress
id
user_id
User
task_id
Task
is_finished
score
completed_at
Description:
Implement a feature to calculate and return the average progress of tasks within a course.
Expected Endpoints:
GET /courses/:courseId/tasks/progress
Purpose: Calculate average task progress for a course.
Updated Model:
UserTaskProgress
id
(UUID, Primary Key)user_id
(Foreign Key, ReferencesUser
)task_id
(Foreign Key, ReferencesTask
)is_finished
(Boolean, default: false)score
(Integer, nullable)completed_at
(Timestamp, nullable)