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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| UserId | uuid | not null, references AspNetUsers.Id | |
| CampaignId | uuid | references CreatorCampaigns.Id | |
| PostId | uuid | references CampaignPosts.Id | |
| PayoutId | uuid | ||
| Kind | varchar(50) | not null | |
| AmountCents | bigint | not null | |
| Views | bigint | not null | |
| PayableAt | timestamptz | not null | |
| CreatedAt | timestamptz | not null |
Indexes (3)
(CampaignId)(IX_CreatorEarnings_CampaignId)(PostId)(IX_CreatorEarnings_PostId)(UserId, PayableAt)(IX_CreatorEarnings_UserId_PayableAt)
Relationships
CreatorEarnings.UserIdreferencesAspNetUsers.IdCreatorEarnings.CampaignIdreferencesCreatorCampaigns.IdCreatorEarnings.PostIdreferencesCampaignPosts.Id