Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.grouple.pro/llms.txt

Use this file to discover all available pages before exploring further.

Entity Relationship Overview

countries β†’ cities β†’ neighbourhoods
                 ↓
merchants (subscription_plans) β†’ venues β†’ venue_amenities (amenities)
                                       β†’ venue_cuisines (cuisines)
                                       β†’ venue_knowledge
                                       β†’ venue_leads ← enquiries ← customers
                                                    ↓
                                                proposals β†’ beos
                                                         β†’ commission_settlements

Core Tables

customers

Registered end-customers (event planners).
ColumnTypeNotes
iduuidPrimary key
supabase_user_iduuidLinks to Supabase Auth
first_name, last_nametext
emailtextNOT NULL
phonetext
company_nametext
created_attimestamp

merchants

Venue owners / managers.
ColumnTypeNotes
iduuidPrimary key
supabase_user_iduuidLinks to Supabase Auth
first_name, last_nametext
emailtextNOT NULL
roletext
company_nametext
logo_urltext
onboarding_completedboolean
plan_idtextFK β†’ subscription_plans
currency_codetext

venues

Individual venues listed by merchants.
ColumnTypeNotes
iduuidPrimary key
merchant_iduuidFK β†’ merchants
venue_nametextNOT NULL
address, city_id, neighbourhood_idLocation
seated_capacity, standing_capacityinteger
price_min, price_maxnumeric
operating_hoursjsonb
venue_type_iduuidFK β†’ venue_types
currency_codetext
is_activeboolean
public_tokentextFor public-facing links
is_featuredboolean

enquiries

Customer group booking requests (RFQs).
ColumnTypeNotes
iduuidPrimary key
rfq_numberintegerAuto-incremented sequence
event_datedateNOT NULL
time_slottimeNOT NULL
group_sizeintegerNOT NULL
budget_tierenumEconomy / Standard / Premium / Luxury
city_id, neighbourhood_iduuid
event_category_iduuidFK β†’ event_categories
cuisine_preference_iduuidFK β†’ cuisines
venue_type_iduuidFK β†’ venue_types
customer_iduuidFK β†’ customers
currency_codetextAuto-synced from city
statustextopen / confirmed
confirmed_proposal_iduuidSet on confirmation
confirmed_venue_iduuidSet on confirmation

venue_leads

Junction between an enquiry and a specific venue β€” one lead per venue per enquiry.
ColumnTypeNotes
iduuidPrimary key
enquiry_iduuidFK β†’ enquiries
venue_iduuidFK β†’ venues
merchant_iduuidFK β†’ merchants
statusenumpending / accepted / declined / connected / closed_won / closed_lost
merchant_rfq_numberintegerAuto-set by trigger
proposed_event_datedateMerchant can counter-propose
proposed_group_sizeinteger
is_counter_offerboolean
accepted_at, declined_at, closed_won_at, closed_lost_attimestamp
is_readboolean

proposals

Proposals sent by merchants in response to leads.
ColumnTypeNotes
iduuidPrimary key
venue_lead_iduuidFK β†’ venue_leads
venue_iduuidFK β†’ venues
titletext
statusenumdraft / sent / viewed / confirmed / declined / expired
offer_valid_untildate
detailstextAI-generated or manual
package_inclusionstext[]
amount, service_fee, discount, totalnumeric
price_typeenumPer Person / Per Bottle / Per Item / Per Event
payment_terms, venue_policiestext
ai_generatedboolean
public_tokentextFor public-facing proposal links
signed_by_name, signed_at, signature_base64Digital signature
selected_packagesjsonb
currency_codetext

commission_settlements

Auto-created when a proposal is confirmed.
ColumnTypeNotes
proposal_iduuidFK β†’ proposals
merchant_iduuidFK β†’ merchants
applied_commission_ratenumericFrom subscription plan
statusenumunpaid / pending_verification / paid / cancelled
is_paidboolean
receipt_url, invoice_urltext

beos

Banquet Event Orders linked to confirmed proposals.
ColumnTypeNotes
proposal_iduuidFK β†’ proposals
setup_timetext
table_setuptext
staffing_requirementstext
av_requirementstext
sales_contact, venue_mobiletext
miscellaneous_notestext

venue_knowledge

PDF menus and brochures uploaded by merchants for AI extraction.
ColumnTypeNotes
venue_iduuidFK β†’ venues
merchant_iduuidFK β†’ merchants
file_pathtextNOT NULL β€” path in Supabase Storage
extracted_datajsonbAI-extracted content
statustext

Support Tables

TablePurpose
citiesCity list with default currency
countriesCountry reference data
neighbourhoodsNeighbourhood lookup (FK β†’ cities)
amenitiesAmenity types (e.g. β€œPrivate Room”, β€œAV Equipment”)
cuisinesCuisine types
event_categoriesEvent types
venue_typesVenue type categories
subscription_plansMerchant plan definitions
exchange_ratesCurrency exchange rates (updated by Edge Function)
lead_response_timesTracks how quickly merchants respond to leads
lead_valuesEstimated booking value per lead
merchant_lead_counterTracks last RFQ number per merchant
merchant_analytics_v3Materialised view for analytics dashboard
merchant_commission_ledgerView for commission tracking

Enums

EnumValues
budget_tierEconomy, Standard, Premium, Luxury
lead_statuspending, accepted, declined, connected, closed_won, closed_lost
proposal_statusdraft, sent, viewed, confirmed, declined, expired
commission_statusunpaid, pending_verification, paid, cancelled
price_typePer Person, Per Bottle, Per Item, Per Event
currency_code_typeUSD, AED, GBP, INR, EUR
occasion_typeCorporate, Birthday Party, Conferences/Seminars, Gala Dinners, and 13 more