Saltar al contenido

app.spend_approvals

TablaSeguridad a nivel de fila activa

Append-only ledger of approvals given under spend authority, written only by approval RPCs. A document above its dual threshold is approved once two distinct approvers have rows here.

Clave primaria: id

Columnas de app.spend_approvals
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.Hace referencia a app.organizations.id
document_typeapp.spend_document_typeNoType of the approved document.
document_iduuidNoId of the approved document.
approver_person_iduuidNoPerson who approved.Hace referencia a app.people.id
amount_minorbigintNoAmount approved, in minor units.
currency_codecharacter(3)NoISO 4217 currency of the amount.Hace referencia a private.currencies.currency_code
spend_authority_iduuidNoLimit row that authorized the approval.Hace referencia a app.spend_authorities.id
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
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.