ShipLogDrafts table
The ShipLogDrafts table in the Shipfolio schema has 17 columns, keyed by Id, with 2 foreign keys to Listings and ShipLogEntries.
Columns (17)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ListingId | uuid | not null, references Listings.Id | |
| SourceKey | varchar(100) | not null | |
| Kind | varchar(50) | not null | |
| Status | varchar(50) | not null | |
| ShippedOn | date | not null | |
| Title | varchar(140) | not null | |
| Body | varchar(4000) | ||
| SourceUrl | varchar(500) | ||
| SourceLabel | varchar(140) | ||
| SourcePublic | boolean | not null | |
| SourceHash | varchar(64) | ||
| ShipLogEntryId | uuid | references ShipLogEntries.Id | |
| PublishedAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| UpdatedAt | timestamptz | not null | |
| ShippedAt | timestamptz |
Indexes (3)
(ListingId, SourceKey)unique (IX_ShipLogDrafts_ListingId_SourceKey)(ListingId, Status)(IX_ShipLogDrafts_ListingId_Status)(ShipLogEntryId)(IX_ShipLogDrafts_ShipLogEntryId)
Relationships
ShipLogDrafts.ListingIdreferencesListings.IdShipLogDrafts.ShipLogEntryIdreferencesShipLogEntries.Id