Appearance
Teaching Allocation
lms.teaching_allocation · every change is kept in the audit log
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
faculty | faculty | link → core.user | required |
subject | subject | link → core.subject | required |
batch | batch | link → lms.batch | |
division | division | link → lms.division | |
cohort | cohort | link → lms.cohort | |
semester_number | semester number | number | min 1; max 12 |
college | college | link → core.college | required |
is_approved | is approved | check | default true |
needs_correction | needs correction | check | default false |
correction_message | correction message | longtext | max 2000 characters |
Unique together: faculty + subject + batch + division + cohort
Permissions
| Role | Can |
|---|---|
lms:admin | read, create, update, delete |
lms:college_admin | read, create, update, delete |
lms:hod | read, create, update, delete |
lms:faculty | read — only own rows (via faculty) |
API
http
GET /api/lms/teaching_allocation?<field>=<value>&limit=100&offset=0
POST /api/lms/teaching_allocation
GET /api/lms/teaching_allocation/:id
PATCH /api/lms/teaching_allocation/:id
DELETE /api/lms/teaching_allocation/:id