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/checkoutGET /api/v1/events

Columns

ColumnTypeNullNotes
iduuid——
titletext——
brandtext——
taglinetextyes—
website_taglinetextyes—
flyer_urltextyes—
flyer_urlstext[]yes—
short_descriptiontextyes—
basic_descriptiontextyes—
linksjsonbyes—
total_tickets_limitintyes—
starts_attimestamptz——
ends_attimestamptz——
statustext—checkout and public feed use 'approved'/'published' and is_private=false (not pending_announcement)
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
  • ←membership_event_invitesviaevent_id
  • ←sms_sendsviaevent_id

RPCs

  • increment_tier_quantity_soldcore

    Atomically bumps ticket_tiers.quantity_sold after payment.

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