Appearance
Resident Profile
hostel.resident_profile · every change is kept in the audit log · numbered {student}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
student | student | link → core.student | required; unique |
guardian_name | guardian name | text | personal data |
guardian_email | guardian email | personal data | |
guardian_phone | guardian phone | phone | personal data |
emergency_phone | emergency phone | phone | personal data |
disability | disability | text | personal data |
university_type | university type | select | one of: Home, Other |
quota_exempt | quota exempt | check | default false |
from_admission | from admission | check | default false |
photo | photo | image | personal data |
signature | signature | image | personal data |
guardian_photo | guardian photo | image | personal data |
guardian_signature | guardian signature | image | personal data |
identity_document | identity document | file | personal data |
admission_receipt | admission receipt | file | personal data |
verification_status | verification status | select | one of: Pending, Approved, Rejected; default "Pending" |
Permissions
| Role | Can |
|---|---|
hostel:admin | read, create, update, delete, import, export |
hostel:warden | read, create, update |
hostel:accounts | read |
hostel:student | read, create, update — only own rows (via student) |
API
http
GET /api/hostel/resident_profile?<field>=<value>&limit=100&offset=0
POST /api/hostel/resident_profile
GET /api/hostel/resident_profile/:id
PATCH /api/hostel/resident_profile/:id
DELETE /api/hostel/resident_profile/:idBulk import: GET /api/_import/hostel/resident_profile/template (CSV template), then POST /api/_import/hostel/resident_profile. See REST API.