Overview
The board types system defines how students arrange their horse usage and boarding at the equestrian school. It consists of two related enumerations:TipoPension (type of arrangement) and CuotaPension (board quota).
TipoPension (Board Type)
Defines the student’s horse arrangement type.Type Definition
Values
SIN_CABALLO
Meaning: Without assigned horse Description: The student does not reserve any specific horse. A school horse is assigned per class based on availability. Characteristics:- No specific horse assignment
- Horse assigned on a per-class basis
- Most flexible option
- No board quota required (
cuotaPensionmust benull) - Uses available school horses
- Beginner students
- Students trying different horses
- Students without commitment to a specific horse
- Irregular attendance schedules
RESERVA_ESCUELA
Meaning: School horse reservation Description: The student reserves a specific school horse for their exclusive use during classes. Characteristics:- Student reserves a specific school horse
- Horse is prioritized for this student
- Requires board quota selection
- Horse type must be
"ESCUELA" - Provides consistency for student-horse relationship
- Intermediate students wanting consistency
- Students developing relationship with specific horse
- Students who don’t own a horse but want dedicated access
- Regular attendees
CABALLO_PROPIO
Meaning: Private/own horse Description: The student has their own private horse boarded at the school. Characteristics:- Student owns the horse
- Horse type must be
"PRIVADO" - Requires board quota selection
- Horse can only be used by its owner
- Student is marked as
propietario: true
- Advanced students
- Competition riders
- Students with their own horses
- Long-term committed students
CuotaPension (Board Quota)
Defines the board payment quota when applicable.Type Definition
Values
ENTERA
Meaning: Full board Description: Complete boarding services for the horse, including feeding, stabling, grooming, and care. Typical Includes:- Full-time stabling
- Daily feeding and care
- Grooming services
- Paddock access
- Complete facilities use
MEDIA
Meaning: Half board Description: Partial boarding services, typically split responsibilities between school and owner. Typical Includes:- Part-time stabling
- Shared care responsibilities
- Limited grooming services
- Reduced facilities use
TERCIO
Meaning: Third board / Minimal board Description: Minimal boarding services, mostly student-managed with basic facilities. Typical Includes:- Basic stabling access
- Minimal care services
- Student handles most care
- Limited facilities
Combination Rules
Valid Combinations
| TipoPension | CuotaPension | CaballoPropio | Propietario |
|---|---|---|---|
| SIN_CABALLO | null (required) | - | false |
| RESERVA_ESCUELA | ENTERA/MEDIA/TERCIO (required) | School horse ID | false |
| CABALLO_PROPIO | ENTERA/MEDIA/TERCIO (required) | Private horse ID | true |
Invalid Combinations
❌SIN_CABALLO with cuotaPension set
RESERVA_ESCUELA or CABALLO_PROPIO without cuotaPension
RESERVA_ESCUELA with private horse
Examples
Student Without Horse
Student Reserving School Horse
Student With Private Horse
Validation Rules
System Validations
-
Quota Requirement: When
tipoPensionisRESERVA_ESCUELAorCABALLO_PROPIO,cuotaPensionmust be set -
Quota Prohibition: When
tipoPensionisSIN_CABALLO,cuotaPensionmust benull -
Horse Type Match:
RESERVA_ESCUELArequires horse withtipo: "ESCUELA"CABALLO_PROPIOrequires horse withtipo: "PRIVADO"
-
Ownership Flag: Students with
tipoPension: "CABALLO_PROPIO"must havepropietario: true - Horse Assignment: Private horses can only be assigned to classes with their owner
UI Behavior
Form Dynamics
When creating/editing a student:- Select
tipoPension - If
SIN_CABALLO:- Hide quota selector
- Hide horse selector
- Set
cuotaPension = null
- If
RESERVA_ESCUELA:- Show quota selector (required)
- Show horse selector filtered to
tipo: "ESCUELA"
- If
CABALLO_PROPIO:- Show quota selector (required)
- Show horse selector filtered to
tipo: "PRIVADO" - Set
propietario = true