ListingBoosts table
The ListingBoosts table in the Shipfolio schema has 12 columns, keyed by Id, with 2 foreign keys to Listings and Companies. 2 columns in Comps and ListingBoostDailyStats reference it.
Columns (12)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| CompanyId | uuid | not null, references Companies.Id | |
| BoughtById | uuid | ||
| Days | integer | not null | |
| StartsOn | date | not null | |
| EndsOn | date | not null | |
| AmountCents | bigint | not null | |
| ListPriceCents | bigint | not null | |
| Offer | varchar(50) | not null | |
| StripeSessionId | varchar(255) | ||
| CreatedAt | timestamptz | not null |
Indexes (3)
(CompanyId)(IX_ListingBoosts_CompanyId)(ListingId, EndsOn)(IX_ListingBoosts_ListingId_EndsOn)(StartsOn, EndsOn)(IX_ListingBoosts_StartsOn_EndsOn)
Relationships
ListingBoosts.ListingIdreferencesListings.IdListingBoosts.CompanyIdreferencesCompanies.IdComps.ListingBoostIdreferencesListingBoostsListingBoostDailyStats.BoostIdreferencesListingBoosts