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)

Columns of the PriceChanges table
ColumnTypeConstraintsDescription
Iduuidprimary key
ToolIduuidnot null, references Tools.Id
Originvarchar(50)not null
Statusvarchar(50)not null
PreviousSnapshotIduuidreferences PricingSnapshots.Id
SnapshotIduuidnot null, references PricingSnapshots.Id
Summaryvarchar(1000)not null
ChangedOndatenot null
Slugvarchar(100)
CreatedByIduuid
CreatedAttimestamptznot null
ReviewedByIduuid
ReviewedAttimestamptz
RejectionNotevarchar(300)
Recipientsintegernot null
ApprovedAutomaticallybooleannot null
ConfirmedAttimestamptz
RecheckAftertimestamptz
ReviewNotevarchar(300)

Indexes (4)

  • (PreviousSnapshotId) (IX_PriceChanges_PreviousSnapshotId)
  • (SnapshotId) (IX_PriceChanges_SnapshotId)
  • (Status, ChangedOn) (IX_PriceChanges_Status_ChangedOn)
  • (ToolId, Status) (IX_PriceChanges_ToolId_Status)

Relationships