Appearance
Seat Quota Plan
hostel.seat_quota_plan · every change is kept in the audit log · numbered {academic_year}-{name}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
academic_year | academic year | link → core.academic_year | required |
name | name | text | required |
hostel | hostel | link → hostel.hostel | |
total_seats | total seats | number | required; min 0 |
by_gender | by gender | check | default false |
by_college | by college | check | default false |
by_course | by course | check | default false |
by_category | by category | check | default false |
by_university_type | by university type | check | default false |
is_active | is active | check | default false |
quotas | quotas | table of seat_quota |
Unique together: academic_year + 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 |
API
http
GET /api/hostel/seat_quota_plan?<field>=<value>&limit=100&offset=0
POST /api/hostel/seat_quota_plan
GET /api/hostel/seat_quota_plan/:id
PATCH /api/hostel/seat_quota_plan/:id
DELETE /api/hostel/seat_quota_plan/:idBulk import: GET /api/_import/hostel/seat_quota_plan/template (CSV template), then POST /api/_import/hostel/seat_quota_plan. See REST API.