CreatorEarnings table

The CreatorEarnings table in the Shipfolio schema has 10 columns, keyed by Id, with 3 foreign keys to AspNetUsers, CreatorCampaigns and CampaignPosts.

Columns (10)

Columns of the CreatorEarnings table
ColumnTypeConstraintsDescription
Iduuidprimary key
UserIduuidnot null, references AspNetUsers.Id
CampaignIduuidreferences CreatorCampaigns.Id
PostIduuidreferences CampaignPosts.Id
PayoutIduuid
Kindvarchar(50)not null
AmountCentsbigintnot null
Viewsbigintnot null
PayableAttimestamptznot null
CreatedAttimestamptznot null

Indexes (3)

  • (CampaignId) (IX_CreatorEarnings_CampaignId)
  • (PostId) (IX_CreatorEarnings_PostId)
  • (UserId, PayableAt) (IX_CreatorEarnings_UserId_PayableAt)

Relationships