Teachers (docentes) are the central resource in Módulo Horario. Every schedule entry ties one teacher to a subject, a classroom, and a time slot. Getting teacher records set up correctly — especially their shift and availability — directly affects the quality of the schedules the generator produces.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Luisanchez0/modulo_Horario/llms.txt
Use this file to discover all available pages before exploring further.
Teacher fields
When creating or editing a teacher, the following fields are available:| Field | Required | Description |
|---|---|---|
nombre | Yes | Full name of the teacher, displayed throughout the schedule views. |
correo | Yes | Email address used for login. Must be unique across all teachers. |
password | Yes (on create) | Login password. Optional when editing an existing teacher. |
role | Yes | Either DOCENTE (read-only access) or ADMIN (full management access). |
turno | Yes | Shift preference: MATUTINO (07:00–14:00), VESPERTINO (15:00–22:00), or AMBOS. |
matricula | No | Optional staff ID or employee number. |
estado | Yes | Whether the teacher account is active (Activo) or inactive (Inactivo). |
Each teacher’s email (
correo) must be unique. Attempting to create a second teacher with the same email address returns a validation error.Roles explained
Módulo Horario has two roles:DOCENTE
Can view the schedule calendar and filter entries by teacher, subject, classroom, or period. Cannot create, edit, or delete any records.
ADMIN
Full access to create, edit, and delete teachers, subjects, classrooms, periods, and schedule entries. Required to trigger automatic generation.
Creating a teacher from the UI
Navigate to the Docentes page
Open the Docentes section from the main menu. You must be logged in as ADMIN to see the creation form.
Fill in the teacher details
Enter the teacher’s name, email, and password. Select their role and shift from the dropdowns. Optionally provide a matricula.
Editing a teacher
Click Editar next to any teacher in the table. The form pre-fills with the teacher’s current data. The password field is optional during edits — leave it blank to keep the existing password. Click Actualizar to save changes.Deleting a teacher
Click Eliminar next to the teacher you want to remove. A confirmation modal appears before the record is deleted.Setting teacher availability
Availability blocks define the days and time windows when a teacher can be scheduled. The generator reads these blocks and only places the teacher in slots that fall within them.Identify the teacher's available days and times
Decide which days and hours the teacher can teach. For example: Monday 08:00–12:00 and Wednesday 08:00–12:00.
Create availability blocks via the API
Post each block to the availability endpoint, providing the teacher’s ID, day, and time window:Repeat this for each available day.