SaleListings table

The SaleListings table in the Shipfolio schema has 19 columns, keyed by Id, with 1 foreign key to Listings. 1 column in Deals references it.

Columns (19)

Columns of the SaleListings table
ColumnTypeConstraintsDescription
Iduuidprimary key
ListingIduuidnot null, references Listings.Id
AskingPriceCentsbigintnot null
Currencyvarchar(3)not null
OpenToOffersbooleannot null
MinimumOfferCentsbigint
Headlinevarchar(120)
ReasonForSalevarchar(1000)
Descriptionvarchar(4000)
HoursPerWeekinteger
Includesvarchar(50)[]not null
IncludesNotevarchar(500)
InspectionDaysintegernot null
EscrowFeeSplitvarchar(50)not null
Statusvarchar(50)not null
PublishedAttimestamptz
SoldAttimestamptz
CreatedAttimestamptznot null
UpdatedAttimestamptznot null

Indexes (2)

  • (ListingId) unique (IX_SaleListings_ListingId)
  • (Status, PublishedAt) (IX_SaleListings_Status_PublishedAt)

Relationships