From 6c6d9d9d971b3008bd845361976b63eb0241dce4 Mon Sep 17 00:00:00 2001 From: fede Date: Sat, 31 Oct 2026 17:45:22 -0300 Subject: [PATCH] un par de ajustes en la documentacion --- docs/05_Prototipos/stock/flow.png | 4 +- docs/diagramas/plantuml/D-CLA-DOM-001.org | 71 +++++++++++++++++++++-- docs/diagramas/png/D-CLA-DOM-001.png | 4 +- docs/diagramas/png/D-CUD-STOCK.png | 4 +- 4 files changed, 73 insertions(+), 10 deletions(-) diff --git a/docs/05_Prototipos/stock/flow.png b/docs/05_Prototipos/stock/flow.png index 1a730b8..eac9429 100644 --- a/docs/05_Prototipos/stock/flow.png +++ b/docs/05_Prototipos/stock/flow.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:04f218e5fa9f2a31b2c8ba615c301ba5dcf6fd86ce92606ba649064bc93501d8 -size 2890772 +oid sha256:d23f5ad051cd1d3d618299dada653bd081ace0f06fb1db33cd31b1c4a33a8f9d +size 3194966 diff --git a/docs/diagramas/plantuml/D-CLA-DOM-001.org b/docs/diagramas/plantuml/D-CLA-DOM-001.org index 760306d..ac2ed03 100644 --- a/docs/diagramas/plantuml/D-CLA-DOM-001.org +++ b/docs/diagramas/plantuml/D-CLA-DOM-001.org @@ -4,8 +4,7 @@ @startuml D-CLA-DOM-001 title SAP-TFI-2026 — Diagrama de Dominio (iteracion 1) -skinparam classAttributeIconSize 0 -hide circle +'hide circle /' ' skinparam linetype ortho '/ @@ -280,7 +279,6 @@ consumida } class "Stock" as S { -ID: uint64 RepuestoID: uint64 Cantidad: uint CantidadReservada: uint @@ -329,6 +327,7 @@ CuentaContable "1" <-- "1..*" MovimientoContable AsientoContable "1" --> "1..*" MovimientoContable + ' Relación polimórfica con los comprobantes AsientoContable "1..*" --> "1" Comprobante /' @@ -348,9 +347,73 @@ Comprobante --|> NotaDebito Comprobante --|> OrdenCompra Comprobante --|> Devolucion +class "Log" as LG { +ID: uint +UsuarioID: uint +Accion: string +Detalles: LogDetalle[] +CreatedAt: Time +Usuario: Usuario +} + +class "LogDetalle" as LGD{ +ID: uint +NombreTabla: string +Columna: string +ValorAnterior: string +ValorNuevo: string +} + +class "Usuario" as usu { +ID: uint +Email: string +Password: string +Name: string +Grupos: Grupo +CreatedAt: Time +UpdatedAt: Time +DeletedAt: Time +} + +class "Permiso" as per { +ID: uint +Nombre: string +Alias: string +Descripcion: string +CreatedAt: Time +UpdatedAt: Time +DeletedAt: Time +} + +class "Grupo" as GRR { +ID: uint +Nombre: string +Descripcion: string +Permisos: Permiso +Grupos: Grupo +Usuarios: Usuario +CreatedAt: Time +UpdatedAt: Time +DeletedAt: Time +} + +interface "IPermisosComponent" { +Buscar(id uint): bool +ListarPermisos(permisos map[uint]Permiso) +} + +Logs "1" *--> "1..*" LogDetalle +Logs "0..*" --> "1" Usuario + +Grupo ..|> IPermisosComponent +Grupo "1" o--> "0..*" IPermisosComponent +Permiso ..|> IPermisosComponent + +Usuario "0..*" --> "0..*" Grupo +Comprobante "0..*" --> "1" Usuario @enduml - #+end_src +#+end_src #+RESULTS: [[file:../png/D-CLA-DOM-001.png]] diff --git a/docs/diagramas/png/D-CLA-DOM-001.png b/docs/diagramas/png/D-CLA-DOM-001.png index d0b9e0c..02892dc 100644 --- a/docs/diagramas/png/D-CLA-DOM-001.png +++ b/docs/diagramas/png/D-CLA-DOM-001.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a9baa9db0a89a89eeb283ab732b03dc9e605991495d9e3faa013fec40b222709 -size 378080 +oid sha256:eeecb25e52b2fc8e97ca9bbf7b3349a1942900637bf16bbf90ab95c8357a5113 +size 457367 diff --git a/docs/diagramas/png/D-CUD-STOCK.png b/docs/diagramas/png/D-CUD-STOCK.png index 61a3488..fc90086 100644 --- a/docs/diagramas/png/D-CUD-STOCK.png +++ b/docs/diagramas/png/D-CUD-STOCK.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f3af5030d9e91fa866c82b51ee903dbeab9a249f038e5060aee279316e120563 -size 103758 +oid sha256:7e9ee68c36d7a7509f1c7ef46bfbb572541a5d02ed4567b0aecd410ecdd08cc7 +size 47299