Wishlabs · platform-api

Schema map

Docs-only view of tables this API reads and writes across the core and analytics Supabase projects. Not live introspection — derived from code usage.

events

core

Shows / events available for ticket sales.

POST /api/v1/checkout

Columns

ColumnTypeNullNotes
iduuid
titletext
brandtext
total_tickets_limitintyes
starts_attimestamptz
statustextcheckout requires 'published'
event_group_iduuidyesgroups multi-night shows; falls back to id

Relations

  • ticket_tiersviaevent_id
  • ticket_discount_codesviaevent_id

    optional; null = global code

  • ticket_purchase_ordersviaevent_id
  • ticket_ordersviaevent_id

RPCs

  • increment_tier_quantity_soldcore

    Atomically bumps ticket_tiers.quantity_sold after payment.

    (tier_id, qty) · POST /api/v1/stripe/webhook