Appearance
Cohort
lms.cohort
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
name | name | text | required; max 150 characters |
college | college | link → core.college | required |
batches | batches | table of cohort_batch | |
status | status | select | one of: Active, Inactive; default "Active" |
Unique together: college + name
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 |
lms:student | read |
API
http
GET /api/lms/cohort?<field>=<value>&limit=100&offset=0
POST /api/lms/cohort
GET /api/lms/cohort/:id
PATCH /api/lms/cohort/:id
DELETE /api/lms/cohort/:id