Appearance
Hostel Staff Assignment
hostel.hostel_staff
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
user | user | link → core.user | required |
hostel | hostel | link → hostel.hostel | required |
duty | duty | select | required; one of: Warden, Accounts, Office counter, Mess; default "Warden" |
is_active | is active | check | default true |
Unique together: user + hostel
Permissions
| Role | Can |
|---|---|
hostel:admin | read, create, update, delete, import, export |
hostel:warden | read — only rows in the user's scope (via hostel) |
API
http
GET /api/hostel/hostel_staff?<field>=<value>&limit=100&offset=0
POST /api/hostel/hostel_staff
GET /api/hostel/hostel_staff/:id
PATCH /api/hostel/hostel_staff/:id
DELETE /api/hostel/hostel_staff/:idBulk import: GET /api/_import/hostel/hostel_staff/template (CSV template), then POST /api/_import/hostel/hostel_staff. See REST API.