LandingPageLeads


Description

Stores leads captured from landing pages before they complete signup

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 gen_random_uuid()
phoneNumber varchar 255 null

WhatsApp/phone number submitted on landing page

countryCode varchar 3 null
metadata jsonb 2147483647 '{}'::jsonb

JSONB containing UTM params (utmSource, utmMedium, utmCampaign), referrer, userAgent, ipAddress

submissionCount int4 10 1

Number of times this phone number has submitted the form

convertedUserId uuid 2147483647 √ null
Users.id LandingPageLeads_convertedUserId_fkey N

Foreign key to Users table, populated when lead completes signup

hasSignedUp bool 1 false

Flag indicating if the lead has completed signup

createdAt timestamptz 35,6 now()
updatedAt timestamptz 35,6 now()

Indexes

Constraint Name Type Sort Column(s)
LandingPageLeads_pkey Primary key Asc id
LandingPageLeads_convertedUserId_idx Performance Asc convertedUserId
LandingPageLeads_createdAt_idx Performance Asc createdAt
LandingPageLeads_phoneNumber_idx Must be unique Asc phoneNumber

Relationships