PriceChanges table
The PriceChanges table in the Shipfolio schema has 19 columns, keyed by Id, with 3 foreign keys to Tools and PricingSnapshots.
Columns (19)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| ToolId | uuid | not null, references Tools.Id | |
| Origin | varchar(50) | not null | |
| Status | varchar(50) | not null | |
| PreviousSnapshotId | uuid | references PricingSnapshots.Id | |
| SnapshotId | uuid | not null, references PricingSnapshots.Id | |
| Summary | varchar(1000) | not null | |
| ChangedOn | date | not null | |
| Slug | varchar(100) | ||
| CreatedById | uuid | ||
| CreatedAt | timestamptz | not null | |
| ReviewedById | uuid | ||
| ReviewedAt | timestamptz | ||
| RejectionNote | varchar(300) | ||
| Recipients | integer | not null | |
| ApprovedAutomatically | boolean | not null | |
| ConfirmedAt | timestamptz | ||
| RecheckAfter | timestamptz | ||
| ReviewNote | varchar(300) |
Indexes (4)
(PreviousSnapshotId)(IX_PriceChanges_PreviousSnapshotId)(SnapshotId)(IX_PriceChanges_SnapshotId)(Status, ChangedOn)(IX_PriceChanges_Status_ChangedOn)(ToolId, Status)(IX_PriceChanges_ToolId_Status)
Relationships
PriceChanges.ToolIdreferencesTools.IdPriceChanges.PreviousSnapshotIdreferencesPricingSnapshots.IdPriceChanges.SnapshotIdreferencesPricingSnapshots.Id