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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | references Listings.Id | |
| CompanyId | uuid | not null | |
| CreatedById | uuid | not null | |
| Slug | varchar(100) | not null | |
| Title | varchar(120) | not null | |
| ProductName | varchar(200) | not null | |
| Status | varchar(50) | not null | |
| EndReason | varchar(50) | ||
| Platforms | varchar(50)[] | not null | |
| KeyMessage | varchar(600) | not null | |
| Dos | varchar(1200) | not null | |
| Donts | varchar(1200) | not null | |
| RequiredMention | varchar(200) | not null | |
| ExampleLinks | text[] | not null | |
| PromoCode | varchar(60) | ||
| RateCents | bigint | not null | |
| BudgetCents | bigint | not null | |
| FeeCents | bigint | not null | |
| CreatorCapPercent | integer | not null | |
| SpotsCap | integer | ||
| AutoApprove | boolean | not null | |
| MinFollowers | bigint | ||
| MinAccountAgeDays | integer | ||
| EndsOn | date | not null | |
| StripeCheckoutSessionId | varchar(255) | ||
| StripePaymentIntentId | varchar(255) | ||
| PaidAt | timestamptz | ||
| LiveAt | timestamptz | ||
| ClosedAt | timestamptz | ||
| EndedAt | timestamptz | ||
| RefundSettledAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null |
Indexes (4)
(ListingId)(IX_CreatorCampaigns_ListingId)(Slug)unique (IX_CreatorCampaigns_Slug)(Status, EndsOn)(IX_CreatorCampaigns_Status_EndsOn)(StripePaymentIntentId)(IX_CreatorCampaigns_StripePaymentIntentId)
Relationships
CreatorCampaigns.ListingIdreferencesListings.IdCampaignCreators.CampaignIdreferencesCreatorCampaignsCampaignPosts.CampaignIdreferencesCreatorCampaignsCampaignRefunds.CampaignIdreferencesCreatorCampaignsCreatorEarnings.CampaignIdreferencesCreatorCampaigns