Saltar al contenido

app.agreements

TablaSeguridad a nivel de fila activa

Agreements prepared for signature (Section 7.4 People): offer letters, contractor agreements, MSAs and NDAs. Sent with a signing token and an access code shown once and stored hashed (invariant 8); signed by the signer through the token or while signed in. A Signed agreement is never revoked or unsigned: its terms, signature and row never change and it moves only to Superseded (journey 9).

Clave primaria: id

Columnas de app.agreements
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.Hace referencia a app.organizations.id
project_iduuidSíProject the agreement covers, whose org it takes; NULL for an org-wide agreement such as an MSA, which names its org.Hace referencia a app.projects.id
offer_iduuidSíOffer the agreement documents, for an offer letter. The foreign key to app.offers is added from the A28 range, which owns offers.Hace referencia a app.offers.id
person_iduuidSíPerson who signs, or the person an organization supplies.Hace referencia a app.people.id
counterparty_iduuidSíExternal organization party to the agreement.Hace referencia a app.counterparties.id
agreement_kindapp.agreement_kindNoOffer Letter, Contractor Agreement, Master Services Agreement or Non-Disclosure Agreement.
titletextNoTitle, Title Case.
bodytextNoFull text the signer reads and signs. Changes only while Proposed.
token_hashbyteaSíSHA-256 of the signing token; the token is shown once when sent. Never selectable by signed-in callers.
access_code_hashtextSíbcrypt hash of the access code that goes with the token. Never selectable by signed-in callers.
token_expires_attimestamp with time zoneSíWhen the signing token stops working.
failed_attemptssmallintNoWrong access codes entered with the token; the token locks at 5.
signed_attimestamp with time zoneSíWhen the agreement was signed.
signed_nametextSíName the signer typed as their signature.
signed_body_sha256textSíSHA-256 of the exact text signed, lowercase hex.
agreement_stateapp.agreement_stateNoAgreement state. Changes only through the agreement RPCs.
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