Skip to content

app.addon_purchases

TableRow level security on

One-time add-ons an org paid for through Stripe Checkout, such as an Aurora request pack (ADR 0035). Each raises its limit for the UTC calendar month it was paid in. Written once per Checkout session by app.record_addon_purchase_from_stripe; append-only.

Primary key: id

Columns of app.addon_purchases
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
addon_codetextNoAdd-on code from packages/schemas/plans.yaml.
quantityintegerNoUnits bought.
applies_monthdateNoFirst day of the UTC calendar month the purchase raises the limit for.
stripe_checkout_session_idtextNoStripe Checkout session (cs_...) that was paid, unique.
currency_codecharacter(3)NoCurrency the org paid in.References private.currencies.currency_code
amount_total_minorbigintNoAmount paid in minor units, after discounts and before tax, as Stripe reports it.
livemodebooleanNoTrue for live mode payments.
paid_attimestamp with time zoneNoWhen Stripe completed the payment.
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.