AffiliatePayouts table
The AffiliatePayouts table in the Shipfolio schema has 13 columns, keyed by Id, with 1 foreign key to AffiliateAccounts. 1 column in AffiliateCommissions references it.
Columns (13)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| AffiliateAccountId | uuid | not null, references AffiliateAccounts.Id | |
| AmountCents | bigint | not null | |
| Currency | varchar(3) | not null | |
| Status | varchar(50) | not null | |
| StripeTransferId | varchar(64) | ||
| Attempts | integer | not null | |
| Error | varchar(500) | ||
| PaidAt | timestamptz | ||
| ClaimedAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| StripeAccountId | varchar(255) | not null |
Indexes (1)
(AffiliateAccountId, Status)(IX_AffiliatePayouts_AffiliateAccountId_Status)
Relationships
AffiliatePayouts.AffiliateAccountIdreferencesAffiliateAccounts.IdAffiliateCommissions.PayoutIdreferencesAffiliatePayouts