Appearance
Content Progress
lms.content_progress
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
student | student | link → core.student | required |
content_type | content type | select | required; one of: Study Material, Chapter PDF, Video, AI Study Pack, AI Tutor Topic, Previous Paper |
study_material | study material | link → lms.study_material | |
chapter | chapter | link → lms.chapter | |
ai_study_pack | ai study pack | link → lms.ai_study_pack | |
tutor_topic | tutor topic | link → lms.ai_tutor_topic | |
subject | subject | link → core.subject | |
view_count | view count | number | default 0; min 0 |
percent_complete | percent complete | decimal | default 0; min 0; max 100 |
seconds_spent | seconds spent | number | default 0; min 0 |
first_viewed_at | first viewed at | datetime | |
last_viewed_at | last viewed at | datetime | |
completed_at | completed at | datetime |
Unique together: student + content_type + study_material + chapter + ai_study_pack + tutor_topic
Permissions
| Role | Can |
|---|---|
lms:admin | read |
lms:college_admin | read |
lms:hod | read |
lms:faculty | read |
lms:student | read, create, update — only own rows (via student) |
lms:parent | read — only own rows (via student) |
API
http
GET /api/lms/content_progress?<field>=<value>&limit=100&offset=0
POST /api/lms/content_progress
GET /api/lms/content_progress/:id
PATCH /api/lms/content_progress/:id
DELETE /api/lms/content_progress/:id