feat(7-mejoras): notas persisten + soporte + captura visible
1. Notas propagan entre etapas (convertirLead/apartar updateMany) 2. Afluencia: conexión → aviso amarillo 3. Escrituración: click nombre abre bitácora 4. Co-acreditado: opción 'no tiene' 5. Nota del alta de lead → bitácora 6. Módulo Soporte: formulario + listado solicitudes 7. Captura visible para todos
This commit is contained in:
@@ -504,3 +504,29 @@ model ClienteMaestro {
|
||||
@@index([estatus])
|
||||
@@index([vendedor])
|
||||
}
|
||||
|
||||
// ── Módulo Soporte: solicitudes de los departamentos (Sistemas, Admin, ...) ──
|
||||
|
||||
model SolicitudSoporte {
|
||||
id String @id @default(uuid())
|
||||
usuarioId String
|
||||
titulo String
|
||||
descripcion String
|
||||
departamento String
|
||||
prioridad String
|
||||
responsable String?
|
||||
fechaSolicitud DateTime @default(now())
|
||||
fechaLimite DateTime?
|
||||
notas String?
|
||||
archivos String? // JSON array de rutas
|
||||
// Quién pide la solicitud (nombre y email; el front los manda o el API usa
|
||||
// el usuario del token)
|
||||
solicitante String @default("")
|
||||
solicitanteEmail String?
|
||||
estado String @default("ABIERTA") // ABIERTA, EN_PROCESO, CERRADA
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([usuarioId])
|
||||
@@index([departamento])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user