ProductReferrals table

The ProductReferrals table in the Shipfolio schema has 6 columns, keyed by Id, with 1 foreign key to Listings. 1 column in UserAcquisitions references it.

Columns (6)

Columns of the ProductReferrals table
ColumnTypeConstraintsDescription
Iduuidprimary key
ReferrerUserIduuidnot null
ListingIduuidnot null, references Listings.Id
Codevarchar(24)not null
CreatedAttimestamptznot null
ClaimedAttimestamptz

Indexes (3)

  • (Code) unique (IX_ProductReferrals_Code)
  • (ListingId) (IX_ProductReferrals_ListingId)
  • (ReferrerUserId, ListingId) unique (IX_ProductReferrals_ReferrerUserId_ListingId)

Relationships