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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| AskingPriceCents | bigint | not null | |
| Currency | varchar(3) | not null | |
| OpenToOffers | boolean | not null | |
| MinimumOfferCents | bigint | ||
| Headline | varchar(120) | ||
| ReasonForSale | varchar(1000) | ||
| Description | varchar(4000) | ||
| HoursPerWeek | integer | ||
| Includes | varchar(50)[] | not null | |
| IncludesNote | varchar(500) | ||
| InspectionDays | integer | not null | |
| EscrowFeeSplit | varchar(50) | not null | |
| Status | varchar(50) | not null | |
| PublishedAt | timestamptz | ||
| SoldAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null |
Indexes (2)
(ListingId)unique (IX_SaleListings_ListingId)(Status, PublishedAt)(IX_SaleListings_Status_PublishedAt)
Relationships
SaleListings.ListingIdreferencesListings.IdDeals.SaleListingIdreferencesSaleListings