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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ReferrerUserId | uuid | not null | |
| ListingId | uuid | not null, references Listings.Id | |
| Code | varchar(24) | not null | |
| CreatedAt | timestamptz | not null | |
| ClaimedAt | timestamptz |
Indexes (3)
(Code)unique (IX_ProductReferrals_Code)(ListingId)(IX_ProductReferrals_ListingId)(ReferrerUserId, ListingId)unique (IX_ProductReferrals_ReferrerUserId_ListingId)
Relationships
ProductReferrals.ListingIdreferencesListings.IdUserAcquisitions.ProductReferralIdreferencesProductReferrals