Saltar al contenido

app.tax_forms

TablaSeguridad a nivel de fila activa

Tax forms a payee gives an org (W-9, W-8BEN, W-8BEN-E; Section 14.9). The tax identifier is Restricted: stored encrypted with pgcrypto under a Vault key, never selectable by signed-in callers, and only its last four characters are ever displayed. The payee always reads their own forms (Section 8.7).

Clave primaria: id

Columnas de app.tax_forms
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOrg the form was given to.Hace referencia a app.organizations.id
person_iduuidSíPayee person.Hace referencia a app.people.id
organization_iduuidSíPayee external account.Hace referencia a app.organizations.id
form_kindapp.tax_form_kindNoW-9, W-8BEN or W-8BEN-E.
tin_encryptedbyteaNoTax identifier encrypted with pgp_sym_encrypt. Restricted (data.restricted.read.tax); readable only by the service role for year-end export.
tin_last4textNoLast four characters of the tax identifier, the only part ever displayed.
foreign_performer_withholdingbooleanNoTrue when foreign performer withholding applies (Section 4.4.4 artists).
signed_attimestamp with time zoneNoWhen the payee signed the form, set by the database.
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
legal_nametextSíName as shown on the form (W-9 line 1); NULL uses the person's or account's name.
street_addresstextSíMailing street address from the form (W-9 line 5).
localitytextSíCity from the form (W-9 line 6).
region_codetextSíTwo-letter state or region code from the form (W-9 line 6), for example CA.
postal_codetextSíPostal code from the form (W-9 line 6); five digits or ZIP+4 on a W-9.