@@ -47,6 +47,7 @@ All endpoints prefixed with `/api/v1`.
...
@@ -47,6 +47,7 @@ All endpoints prefixed with `/api/v1`.
- `GET /api/v1/health` — checks Postgres and Mongo connectivity.
- `GET /api/v1/health` — checks Postgres and Mongo connectivity.
- `POST /api/v1/sync/students/trigger` / `GET /api/v1/sync/students/status` — students pipeline: run now / last run time, rows synced (created/updated/deleted breakdown), last error if any.
- `POST /api/v1/sync/students/trigger` / `GET /api/v1/sync/students/status` — students pipeline: run now / last run time, rows synced (created/updated/deleted breakdown), last error if any.
- `POST /api/v1/sync/students_incremental/trigger` / `GET /api/v1/sync/students_incremental/status` — carga incremental de estudiantes: `postgres.LoadDataStudent` (= `StudentQuery` + `pp.to_update OR ma.to_update`) relee solo las personas/matrículas marcadas y, al terminar, `postgres.StudentMarker` resetea `persona.pe_persona.to_update` y `matricula.ma_matricula.to_update` a `false`. No reconcilia borrados.
log.Printf("[students_incremental] Paso 3: actualizar persona.pe_persona to_update=false con persona_id: %d y matricula.ma_matricula to_update=false con enrollment_id: %d",student.PersonaID,student.EnrollmentID)