Appearance
Room Type
hostel.room_type · numbered {hostel}-{name}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
hostel | hostel | link → hostel.hostel | required |
name | name | text | required |
amenities | amenities | table of room_type_amenity |
Unique together: hostel + name
Permissions
| Role | Can |
|---|---|
hostel:admin | read, create, update, delete, import, export |
hostel:warden | read — only rows in the user's scope (via hostel) |
hostel:accounts | read |
hostel:student | read |
API
http
GET /api/hostel/room_type?<field>=<value>&limit=100&offset=0
POST /api/hostel/room_type
GET /api/hostel/room_type/:id
PATCH /api/hostel/room_type/:id
DELETE /api/hostel/room_type/:idBulk import: GET /api/_import/hostel/room_type/template (CSV template), then POST /api/_import/hostel/room_type. See REST API.