Skip to content

app.subscription_state_transitions

TableRow level security on

Append-only ledger of subscription state changes, written only by private.transition_subscription and subscription creation.

Primary key: id

Columns of app.subscription_state_transitions
ColumnTypeNullableDescription
iduuidNoTransition id.
org_iduuidNoOrg of the subscription, derived from it.References app.organizations.id
subscription_iduuidNoSubscription that changed state.References app.subscriptions.id
from_stateapp.subscription_stateYesState before the change; null for the creation entry.
to_stateapp.subscription_stateNoState after the change.
reasontextNoWhy the state changed, for example a billing event.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.