Appearance
Room Allotment
hostel.allotment · every change is kept in the audit log · numbered ALT-{YYYY}-{#####}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
student | student | link → core.student | required |
application | application | link → hostel.application | required |
academic_year | academic year | link → core.academic_year | required |
hostel | hostel | link → hostel.hostel | required |
room | room | link → hostel.room | required |
bed_no | bed no | number | min 1 |
from | from | date | required |
to | to | date | |
status | status | select | one of: Allotted, Vacated, Cancelled; default "Allotted" |
source | source | select | one of: Online payment, Office counter, Room shift, Admin; default "Online payment" |
Unique together: application
Permissions
| Role | Can |
|---|---|
hostel:admin | read, create, update, delete, import, export |
hostel:warden | read, create, update — only rows in the user's scope (via room.hostel) |
hostel:accounts | read |
hostel:student | read — only own rows (via student) |
API
http
GET /api/hostel/allotment?<field>=<value>&limit=100&offset=0
POST /api/hostel/allotment
GET /api/hostel/allotment/:id
PATCH /api/hostel/allotment/:id
DELETE /api/hostel/allotment/:idBulk import: GET /api/_import/hostel/allotment/template (CSV template), then POST /api/_import/hostel/allotment. See REST API.