Appearance
Attendance
hostel.attendance
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
student | student | link → core.student | required |
hostel | hostel | link → hostel.hostel | |
date | date | date | required |
status | status | select | required; one of: Present, Absent, Home |
check_in | check in | datetime | |
check_out | check out | datetime |
Unique together: student + date
Permissions
| Role | Can |
|---|---|
hostel:admin | read, create, update, delete, import, export |
hostel:warden | read, create, update — only rows in the user's scope (via hostel) |
hostel:student | read — only own rows (via student) |
API
http
GET /api/hostel/attendance?<field>=<value>&limit=100&offset=0
POST /api/hostel/attendance
GET /api/hostel/attendance/:id
PATCH /api/hostel/attendance/:id
DELETE /api/hostel/attendance/:idBulk import: GET /api/_import/hostel/attendance/template (CSV template), then POST /api/_import/hostel/attendance. See REST API.