Skip to content

Hostel Application ​

hostel.application · every change is kept in the audit log · numbered HAP-{YYYY}-{#####}

Fields ​

Every record also has id, created_at and updated_at.

FieldLabelTypeRules
studentstudentlink → core.studentrequired
academic_yearacademic yearlink → core.academic_yearrequired
hostelhostellink → hostel.hostelrequired
room_typeroom typelink → hostel.room_typerequired
preferred_roompreferred roomlink → hostel.room
preferred_bed_nopreferred bed nonumbermin 1
stay_typestay typeselectone of: Regular, Temporary; default "Regular"
stay_fromstay fromdate
stay_tostay todate
opts_messopts messcheckdefault false
mess_planmess planlink → hostel.mess_plan
meal_optionmeal optionselectone of: Breakfast, Breakfast + Lunch/Dinner, Breakfast + Lunch + Dinner
rules_acceptedrules acceptedcheckdefault false
rules_accepted_atrules accepted atdatetime
statusstatusselectone of: New, Approved, Accepted, On hold, Rejected, Guest, Cancelled; default "New"
payment_planpayment planselectone of: Full, Partial, Installment, Split; default "Full"
application_feeapplication feemoney
hostel_feehostel feemoney
mess_feemess feemoney
paid_amountpaid amountmoneydefault 0
mess_paid_latermess paid latercheckdefault false
payment_statuspayment statusselectone of: Pending, Paid; default "Pending"
payment_sourcepayment sourceselectone of: Online, Office counter, Offline upload
collected_bycollected bylink → core.user

Unique together: student + academic_year + hostel + room_type

Permissions ​

RoleCan
hostel:adminread, create, update, delete, import, export
hostel:wardenread, create, update — only rows in the user's scope (via hostel)
hostel:accountsread
hostel:studentread, create — only own rows (via student)

API ​

http
GET    /api/hostel/application?<field>=<value>&limit=100&offset=0
POST   /api/hostel/application
GET    /api/hostel/application/:id
PATCH  /api/hostel/application/:id
DELETE /api/hostel/application/:id

Bulk import: GET /api/_import/hostel/application/template (CSV template), then POST /api/_import/hostel/application. See REST API.

Edulab Bench developer documentation