TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Distribuidos-Org/ms-alumnos/llms.txt
Use this file to discover all available pages before exploring further.
seed_alumnos message pattern is exposed by SeedController and delegates to SeedService.runSeed(). When invoked, it issues a raw SQL TRUNCATE TABLE "alumnos" RESTART IDENTITY CASCADE to wipe all existing student records and reset the auto-increment primary key counter back to 1, then constructs and saves 100 pre-defined sample Alumno entities in a single repository.save() call. Because each entity passes through the @BeforeInsert() lifecycle hook, every sample student’s password is bcrypt-hashed before it lands in the database.
Message pattern
Request payload
This message takes no meaningful payload. Send an empty object or omit the body entirely.No parameters are required or accepted. The seed data is entirely pre-defined
in
src/seed/data/sees.data.ts.Response
A fixed confirmation string:
'Seed ejecutado correctamente'.The number of student records inserted. This is always
100 when using the
default seed dataset shipped with the service.Example
What gets seeded
The 100 sample students are statically defined insrc/seed/data/sees.data.ts and cover a realistic cross-section of Peruvian university profiles:
| Attribute | Values present in seed data |
|---|---|
| Universities | UNMSM, UNI, PUCP, USMP |
| Faculties | FISI, Facultad de Medicina, Facultad de Derecho, Facultad de Psicología, Facultad de Ingeniería, Facultad de Ciencias, and many others |
| Degrees | Bachiller, Licenciado, Magíster, Doctor |
| DNIs | Sequential integers from 10000001 through 10000100 (8-digit strings) |
| Emails | <first>.<last>@example.com pattern (unique per record) |
| Celular | 900000001 through 900000100 |
| Ages | Range from 24 to 35 |
| Password | Every record has a plain-text contrasena of 'contrasena', which is bcrypt-hashed at 10 rounds via the @BeforeInsert() hook before the row is written to the database |