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)

Columns of the AffiliatePayouts table
ColumnTypeConstraintsDescription
Iduuidprimary key
AffiliateAccountIduuidnot null, references AffiliateAccounts.Id
AmountCentsbigintnot null
Currencyvarchar(3)not null
Statusvarchar(50)not null
StripeTransferIdvarchar(64)
Attemptsintegernot null
Errorvarchar(500)
PaidAttimestamptz
ClaimedAttimestamptz
CreatedAttimestamptznot null
UpdatedAttimestamptznot null
StripeAccountIdvarchar(255)not null

Indexes (1)

  • (AffiliateAccountId, Status) (IX_AffiliatePayouts_AffiliateAccountId_Status)

Relationships