Saltar al contenido

app.spend_authorities

TablaSeguridad a nivel de fila activa

Spend authority limits (Section 8.1) by role or person, document type, GL account or cost center scope, and amount. An approval above every limit that applies is refused; above the dual approval threshold it needs two approvers. No applicable row is an absent claim and refuses (Section 3.7).

Clave primaria: id

Columnas de app.spend_authorities
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.Hace referencia a app.organizations.id
role_iduuidSíRole whose holders the limit applies to; NULL when it applies to one person.Hace referencia a app.roles.id
membership_iduuidSíMembership of the one person the limit applies to; NULL when it applies to a role.Hace referencia a app.memberships.id
document_typeapp.spend_document_typeNoDocument type the limit applies to.
account_codetextSíGL account the limit is scoped to; NULL for every account.Hace referencia a xpms.dim_gl_account.account_code
cost_center_iduuidSíCost center the limit is scoped to; NULL for every cost center.Hace referencia a app.cost_centers.id
currency_codecharacter(3)NoISO 4217 currency of the amounts (the org currency).Hace referencia a private.currencies.currency_code
limit_minorbigintNoLargest amount the holder may approve, in minor units.
dual_approval_above_minorbigintSíAmount above which two distinct approvers are needed; NULL for never.
valid_fromtimestamp with time zoneNoWhen the limit starts.
valid_totimestamp with time zoneSíWhen the limit ends; NULL while open-ended.
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id