main

Data table

Migration run against the main data table when the project is imported.

lemlist.campaigns
ColumnTypeConstraints
iduuid
not nullprimary keydefault gen_random_uuid()
nametext
not null
statustext
not nulldefault 'draft'::text
from_nametext
created_attimestamp with time zone
default now()
lemlist.contacts
ColumnTypeConstraints
iduuid
not nullprimary keydefault gen_random_uuid()
emailtext
not null
first_nametext
last_nametext
companytext
created_attimestamp with time zone
default now()
lemlist.enrollments
ColumnTypeConstraints
iduuid
not nullprimary keydefault gen_random_uuid()
campaign_iduuid
not null→ campaigns
contact_iduuid
not null→ contacts
statustext
not nulldefault 'active'::text
current_stepinteger
not nulldefault 0
next_send_attimestamp with time zone
last_sent_attimestamp with time zone
enrolled_attimestamp with time zone
default now()
lemlist.events
ColumnTypeConstraints
iduuid
not nullprimary keydefault gen_random_uuid()
enrollment_iduuid
not null→ enrollments
step_positioninteger
typetext
not null
created_attimestamp with time zone
default now()
lemlist.steps
ColumnTypeConstraints
iduuid
not nullprimary keydefault gen_random_uuid()
campaign_iduuid
not null→ campaigns
positioninteger
not null
subjecttext
not null
bodytext
not null
delay_daysinteger
not nulldefault 0
lemlist.lists
ColumnTypeConstraints
iduuid
not nullprimary keydefault gen_random_uuid()
nametext
not null
created_attimestamp with time zone
default now()
lemlist.list_members
ColumnTypeConstraints
list_iduuid
not nullprimary key→ lists
contact_iduuid
not nullprimary key→ contacts
added_attimestamp with time zone
default now()