app.self_billing_agreements
TablaSeguridad a nivel de fila activa
The engaged party's consent, per engagement, that the org generates its invoices from approved timesheets (Section 4.4.5 self-billing). Generation also needs the org's own setting and belongs to A15; only the party agrees or revokes, and a revoked agreement stays as evidence.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.engagements on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| engagement_id | uuid | No | Engagement the consent covers.Hace referencia a app.engagements.id |
| agreed_by | uuid | Sí | Party person who agreed, set from the session.Hace referencia a app.people.id |
| agreed_at | timestamp with time zone | No | When agreed, set by the database. |
| revoked_by | uuid | Sí | Party person who revoked, set from the session.Hace referencia a app.people.id |
| revoked_at | timestamp with time zone | Sí | When revoked; invoices are no longer generated from then on. |
| deleted_at | timestamp with time zone | Sí | Soft delete time. A row with deleted_at set is ignored by every access helper. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Sí | Person who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Sí | Person who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |