mov.otherDiscount
Descripción
Catálogo de otros descuentos.
Módulo: Movimientos
Nombre en base de datos: [mov].[otherDiscount]
Estructura de la Tabla
| Columna | Tipo | Nulo | Clave | Default | Descripción |
|---|---|---|---|---|---|
| name | NVARCHAR(500) | ✓ | - | - | - |
| code | NVARCHAR(10) | ✗ | - | - | - |
| isMandatory | BIT | ✗ | - | - | - |
| amount | INT | ✓ | - | - | - |
| numberOfInstallments | INT | ✓ | - | - | - |
| goesToContributions | BIT | ✗ | - | - | - |
| id_operationType | INT | ✓ | FK | - | Referencia a mov.operationType |
| id_movementType | INT | ✓ | FK | - | Referencia a mov.movementType |
Columnas Estándar
| Columna | Tipo | Nulo | Descripción |
|---|---|---|---|
| id | INT | ✗ | Clave primaria auto-incremental |
| uid | NVARCHAR(500) | ✗ | Control multiempresa (User ID) |
| eid | NVARCHAR(50) | ✗ | Control multiempresa (Entity ID) |
| id_user_creator | INT | ✓ | Usuario que creó el registro |
| id_user_modifier | INT | ✓ | Usuario que modificó el registro por última vez |
| dateCreation | DATETIME2(0) | ✓ | Fecha y hora de creación |
| dateModification | DATETIME2(0) | ✓ | Fecha y hora de última modificación |
| isActive | BIT | ✗ | Registro activo (borrado lógico) |
| isWebUpdated | BIT | ✗ | Actualizado desde la web (legado: ActuWeb) |
| isWebCreated | BIT | ✗ | Creado desde la web (legado: CreaWeb) |
Diagrama ER
Tabla y sus relaciones directas (sin las columnas de auditoría).
erDiagram
mov_otherDiscount {
int id PK
int id_operationType FK
int id_movementType FK
}
mov_associateOtherDiscount
mov_movementType
mov_operationType
mov_otherDiscount ||--o{ mov_associateOtherDiscount : "id_otherDiscount"
mov_movementType |o--o{ mov_otherDiscount : "id_movementType"
mov_operationType |o--o{ mov_otherDiscount : "id_operationType"
Relaciones
Relaciones Salientes (Foreign Keys)
| Columna | Referencia | Constraint |
|---|---|---|
| id_movementType | mov.movementType.id | FK__mov__otherDiscount__id_movementType |
| id_operationType | mov.operationType.id | FK__mov__otherDiscount__id_operationType |
Relaciones Entrantes
| Tabla | Columna | Constraint |
|---|---|---|
mov.associateOtherDiscount | id_otherDiscount | FK__mov__associateOtherDiscount__id_otherDiscount |
Objetos Relacionados
| Objeto | Tipo |
|---|---|
mov.otherDiscount_act | Procedimiento |
mov.otherDiscount_ins_bulk | Procedimiento |
mov.otherDiscount_sel | Procedimiento |
mov.otherDiscount_typ | Tipo tabla |
mov.otherDiscount_upd_bulk | Procedimiento |
mov.otherDiscount_view | Vista |
mov.otherDiscount_view_base | Vista |
Nota: Documentación generada desde el esquema real de la base de datos pro_safe con la skill data-dictionary (IDAE.ClaudeConfig).