Overview
TheAlumno (Student) model represents individuals enrolled in the equestrian school. Students can take riding classes, own or reserve horses, and have different monthly class plans.
Data Model
Unique identifier for the student
National identification number (DNI). Only numbers without dots or dashes.Validation: Must be unique across all students. The system validates for duplicates in real-time when entering 9 or more digits.Example:
"12345678"Student’s first name(s)
Student’s last name(s)
Date of birth in ISO format (yyyy-MM-dd)Used for age calculation and insurance purposes.Example:
"1995-06-15"Phone area code. The system automatically adds the
+549 prefix for Argentine numbers.Example: "221"Phone number without the leading 0 or 15Example:
"1234567"Note: Combined with codigoArea, the full format becomes +549{codigoArea}{telefono}Email address (optional but recommended for communications)
Registration date in ISO format (yyyy-MM-dd)Automatically set to the current date when creating a new student.
Number of classes contracted per monthValid values:
4, 8, 12, or 16Indicates if the student owns a private horseDefault:
falseIndicates if the student is currently activeDefault:
trueNote: Inactive students cannot take regular classes but may be eligible for trial classes.Reference to the student’s own horse (if
tipoPension is "CABALLO_PROPIO") or reserved school horse (if tipoPension is "RESERVA_ESCUELA")Can be either:- A horse ID (number)
- A full Horse object with expanded data
Type of board/horse arrangementSee Board Types for possible values.
Board quota (only applicable when
tipoPension is not "SIN_CABALLO")Possible values:"ENTERA"- Full board"MEDIA"- Half board"TERCIO"- Third board
null when tipoPension is "SIN_CABALLO"Example
Related Models
- Horse (Caballo) - Horses that students can own or reserve
- Class (Clase) - Classes that students attend
- Board Types - Enumeration of board types
Business Rules
- DNI must be unique across all students (validated in real-time)
- Phone numbers are automatically formatted with
+549prefix - Students with
tipoPension: "SIN_CABALLO"must havecuotaPension: null - Private horses can only be used by their owners
- Inactive students cannot be assigned to regular classes (only trial classes)
- Students are automatically set as active upon registration