AffiliateAccounts table

The AffiliateAccounts table in the Shipfolio schema has 5 columns, keyed by Id, with 1 foreign key to AspNetUsers. 4 columns in AffiliateCommissions, AffiliateExtraCodes, AffiliatePayouts and AffiliateReferrals reference it.

Columns (5)

Columns of the AffiliateAccounts table
ColumnTypeConstraintsDescription
Iduuidprimary key
Codevarchar(16)not null
CreatedAttimestamptznot null
UpdatedAttimestamptznot null
UserIduuidnot null, references AspNetUsers.Id

Indexes (2)

  • (Code) unique (IX_AffiliateAccounts_Code)
  • (UserId) unique (IX_AffiliateAccounts_UserId)

Relationships