Saltar al contenido

app.wholesale_statement_lines

TablaSeguridad a nivel de fila activa

One client org on a wholesale statement: its plan, list price, wholesale amount and the price the partner charges it. Append-only.

Clave primaria: id

Columnas de app.wholesale_statement_lines
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.wholesale_statements on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
wholesale_statement_iduuidNoStatement.Hace referencia a app.wholesale_statements.id
client_org_iduuidNoClient org billed.Hace referencia a app.organizations.id
plan_codetextNoClient's plan when the statement ran.Hace referencia a app.plans.code
list_minorbigintSíMonthly list price in minor units; null when the plan is unpriced in the currency.
wholesale_minorbigintSíList price less the discount, rounded down to the minor unit; null when unpriced.
client_price_minorbigintSíWhat the partner charges the client, when it set a price in the same currency.
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.