- Created TASK-2026-01-25-DOCUMENTACION-MODULOS task - Created DATABASE_INVENTORY.yml (8 schemas, ~98 tables) - Created BACKEND_INVENTORY.yml (153 entities, 23 modules) - Created PROXIMA-ACCION.md with current status - Documented 11 new entities (combustible-gastos, tarifas-transporte) - Documented 5 new controllers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
227 lines
5.5 KiB
YAML
227 lines
5.5 KiB
YAML
# BACKEND_INVENTORY.yml - ERP Transportistas
|
|
# Sistema SIMCO v4.0.0
|
|
# Generado: 2026-01-25
|
|
|
|
version: "1.0.0"
|
|
created: "2026-01-25"
|
|
updated: "2026-01-25"
|
|
|
|
# Resumen
|
|
summary:
|
|
framework: NestJS
|
|
language: TypeScript
|
|
total_modules: 23
|
|
total_entities: 153
|
|
hereda_de: erp-core
|
|
status: "40% implementado"
|
|
|
|
# Modulos del Backend
|
|
modules:
|
|
# Heredados de erp-core
|
|
heredados:
|
|
- name: auth
|
|
entities: 20
|
|
status: heredado
|
|
descripcion: "Autenticacion, JWT, OAuth, 2FA"
|
|
|
|
- name: users
|
|
entities: 3
|
|
status: heredado
|
|
descripcion: "Gestion de usuarios"
|
|
|
|
- name: tenants
|
|
entities: 2
|
|
status: heredado
|
|
descripcion: "Multi-tenancy"
|
|
|
|
- name: companies
|
|
entities: 1
|
|
status: heredado
|
|
descripcion: "Empresas transportistas"
|
|
|
|
- name: ai
|
|
entities: 7
|
|
status: heredado
|
|
descripcion: "Integracion IA/LLM"
|
|
|
|
- name: audit
|
|
entities: 7
|
|
status: heredado
|
|
descripcion: "Auditoria y logs"
|
|
|
|
- name: notifications
|
|
entities: 6
|
|
status: heredado
|
|
descripcion: "Notificaciones multicanal"
|
|
|
|
- name: billing-usage
|
|
entities: 5
|
|
status: heredado
|
|
descripcion: "Facturacion SaaS"
|
|
|
|
- name: branches
|
|
entities: 5
|
|
status: heredado
|
|
descripcion: "Sucursales"
|
|
|
|
- name: financial
|
|
entities: 15
|
|
status: heredado
|
|
descripcion: "Contabilidad base"
|
|
|
|
- name: inventory
|
|
entities: 14
|
|
status: heredado
|
|
descripcion: "Inventario base"
|
|
|
|
- name: partners
|
|
entities: 5
|
|
status: heredado
|
|
descripcion: "Clientes/Proveedores"
|
|
|
|
- name: payment-terminals
|
|
entities: 3
|
|
status: heredado
|
|
descripcion: "Terminales de pago"
|
|
|
|
- name: mcp
|
|
entities: 2
|
|
status: heredado
|
|
descripcion: "MCP Server"
|
|
|
|
# Especializados de Transporte (NUEVOS)
|
|
especializados:
|
|
- name: ordenes-transporte
|
|
entities: 4
|
|
status: en_progreso
|
|
descripcion: "Ordenes de transporte y embarques"
|
|
modulo_simco: MAI-003
|
|
entidades:
|
|
- quotation.entity.ts
|
|
- quotation-item.entity.ts
|
|
- sales-order.entity.ts
|
|
- sales-order-item.entity.ts
|
|
controllers: 1
|
|
notas: "Pendiente completar servicios"
|
|
|
|
- name: gestion-flota
|
|
entities: 7
|
|
status: en_progreso
|
|
descripcion: "Unidades, operadores, productos"
|
|
modulo_simco: MAI-011
|
|
entidades:
|
|
- product.entity.ts
|
|
- product-category.entity.ts
|
|
- product-variant.entity.ts
|
|
- product-attribute.entity.ts
|
|
- product-attribute-value.entity.ts
|
|
- product-price.entity.ts
|
|
- product-supplier.entity.ts
|
|
controllers: 2
|
|
notas: "Controladores operadores y unidades creados"
|
|
|
|
- name: tracking
|
|
entities: 0
|
|
status: en_progreso
|
|
descripcion: "GPS, eventos, alertas"
|
|
modulo_simco: MAI-006
|
|
controllers: 1
|
|
notas: "Controlador basico creado, faltan entidades"
|
|
|
|
- name: viajes
|
|
entities: 1
|
|
status: en_progreso
|
|
descripcion: "Viajes y timesheets"
|
|
modulo_simco: MAI-003
|
|
entidades:
|
|
- timesheet.entity.ts
|
|
controllers: 1
|
|
notas: "Controlador creado"
|
|
|
|
- name: combustible-gastos
|
|
entities: 5
|
|
status: nuevo
|
|
descripcion: "Control de combustible, peajes, gastos"
|
|
modulo_simco: MAI-012
|
|
entidades:
|
|
- carga-combustible.entity.ts
|
|
- cruce-peaje.entity.ts
|
|
- gasto-viaje.entity.ts
|
|
- anticipo-viatico.entity.ts
|
|
- control-rendimiento.entity.ts
|
|
controllers: 0
|
|
notas: "Entidades creadas, faltan controladores y servicios"
|
|
|
|
- name: tarifas-transporte
|
|
entities: 6
|
|
status: nuevo
|
|
descripcion: "Tarifas por lane, facturacion, recargos"
|
|
modulo_simco: MAI-009
|
|
entidades:
|
|
- lane.entity.ts
|
|
- tarifa.entity.ts
|
|
- recargo-catalogo.entity.ts
|
|
- factura-transporte.entity.ts
|
|
- linea-factura.entity.ts
|
|
- fuel-surcharge.entity.ts
|
|
controllers: 0
|
|
notas: "Entidades creadas, faltan controladores y servicios"
|
|
|
|
- name: carta-porte
|
|
entities: 0
|
|
status: pendiente
|
|
descripcion: "Complemento Carta Porte CFDI 3.1"
|
|
modulo_simco: MAE-016
|
|
notas: "Pendiente implementacion"
|
|
|
|
- name: fiscal
|
|
entities: 0
|
|
status: pendiente
|
|
descripcion: "Integracion fiscal Mexico"
|
|
notas: "Pendiente implementacion"
|
|
|
|
- name: core
|
|
entities: 0
|
|
status: base
|
|
descripcion: "Modulo core compartido"
|
|
|
|
# Totales
|
|
totales:
|
|
entities: 153
|
|
controllers: 5
|
|
services: TBD
|
|
dtos: TBD
|
|
|
|
# Entidades Nuevas (2026-01-25)
|
|
entidades_nuevas_2026_01_25:
|
|
combustible_gastos:
|
|
- carga-combustible.entity.ts
|
|
- cruce-peaje.entity.ts
|
|
- gasto-viaje.entity.ts
|
|
- anticipo-viatico.entity.ts
|
|
- control-rendimiento.entity.ts
|
|
tarifas_transporte:
|
|
- lane.entity.ts
|
|
- tarifa.entity.ts
|
|
- recargo-catalogo.entity.ts
|
|
- factura-transporte.entity.ts
|
|
- linea-factura.entity.ts
|
|
- fuel-surcharge.entity.ts
|
|
total: 11
|
|
|
|
# Controladores Nuevos (2026-01-25)
|
|
controladores_nuevos_2026_01_25:
|
|
- operadores.controller.ts (gestion-flota)
|
|
- unidades.controller.ts (gestion-flota)
|
|
- ordenes-transporte.controller.ts (ordenes-transporte)
|
|
- tracking.controller.ts (tracking)
|
|
- viajes.controller.ts (viajes)
|
|
total: 5
|
|
|
|
# Notas
|
|
notas:
|
|
- "Backend hereda 95+ entities de erp-core"
|
|
- "11 entidades especializadas creadas para transporte"
|
|
- "5 controladores nuevos agregados 2026-01-25"
|
|
- "Pendiente: servicios, DTOs, tests"
|