CreatorCampaigns table

The CreatorCampaigns table in the Shipfolio schema has 34 columns, keyed by Id, with 1 foreign key to Listings. 4 columns in CampaignCreators, CampaignPosts, CampaignRefunds and CreatorEarnings reference it.

Columns (34)

Columns of the CreatorCampaigns table
ColumnTypeConstraintsDescription
Iduuidprimary key
ListingIduuidreferences Listings.Id
CompanyIduuidnot null
CreatedByIduuidnot null
Slugvarchar(100)not null
Titlevarchar(120)not null
ProductNamevarchar(200)not null
Statusvarchar(50)not null
EndReasonvarchar(50)
Platformsvarchar(50)[]not null
KeyMessagevarchar(600)not null
Dosvarchar(1200)not null
Dontsvarchar(1200)not null
RequiredMentionvarchar(200)not null
ExampleLinkstext[]not null
PromoCodevarchar(60)
RateCentsbigintnot null
BudgetCentsbigintnot null
FeeCentsbigintnot null
CreatorCapPercentintegernot null
SpotsCapinteger
AutoApprovebooleannot null
MinFollowersbigint
MinAccountAgeDaysinteger
EndsOndatenot null
StripeCheckoutSessionIdvarchar(255)
StripePaymentIntentIdvarchar(255)
PaidAttimestamptz
LiveAttimestamptz
ClosedAttimestamptz
EndedAttimestamptz
RefundSettledAttimestamptz
CreatedAttimestamptznot null
UpdatedAttimestamptznot null

Indexes (4)

  • (ListingId) (IX_CreatorCampaigns_ListingId)
  • (Slug) unique (IX_CreatorCampaigns_Slug)
  • (Status, EndsOn) (IX_CreatorCampaigns_Status_EndsOn)
  • (StripePaymentIntentId) (IX_CreatorCampaigns_StripePaymentIntentId)

Relationships