AuctionSession

The AuctionSession table is used to define and set up the parameters for the Sessions for an Auction. An AuctionSession corresponds to two SessionTime records, one for the entry to the AuctionSession and for the exit from the AuctionSession.

Metadata

  • Base Table Class: Static
  • Default Size: Auction * 10 = 1000

Fields

NameTypeSize (bytes)Description
IdInteger (signed)8The unique identifier of this AuctionSession.
StatusSet of Status4
AuctionForeign key to Auction8A foreign key to the Auction table for the Auction to which the Session applies.
PhaseOne of CcmxAuctionPhase1The phase number (0 to N) of the Auction that this AuctionSession triggers.
ShortNameString24This will be constructed from the Auction ShortName and Phase.
ManualInteger (unsigned)1If this AuctionSession fires manually (no SessionTime records), set to true.
EntrySessionForeign key to Session8A foreign key to the Session table.
ExitSessionForeign key to Session8A foreign key to the Session table.
EntrySessionTimeForeign key to SessionTime8A foreign key to the SessionTime table.
ExitSessionTimeForeign key to SessionTime8A foreign key to the SessionTime table.
ExtEntrySessionTimeForeign key to SessionTime8A foreign key to the SessionTime table.
ExtExitSessionTimeForeign key to SessionTime8A foreign key to the SessionTime table.
SessionStartTimeInteger (unsigned)8The start date and time for the Session in TIMESTAMP format.
SessionEndTimeInteger (unsigned)8The end date and time for the Session in TIMESTAMP format.
PriceDecimalsInteger (unsigned)1The PriceDecimals for the Auction, this value will be populated automatically from the Auction.
QuantityDecimalsInteger (unsigned)1The QuantityDecimals for the Auction, this value will be populated automatically from the Auction.
ThresholdAbsoluteInteger (signed)8The Threshold amount from the Provisional Price for the Auction as an absolute value (uses PriceDecimals).
ThresholdPercentInteger (unsigned)1The Threshold amount from the Provisional Price for the Auction as a percentage value (no decimals).
ProvisionalPriceInteger (signed)8The Provisional Price of the Auction at the start of the Session.
ThresholdPriceInteger (signed)8The Threshold Price for the Session.
AuctionPriceInteger (signed)8The provisional (or final) price of the Auction at the end of the Session (corresponds to field in Auction table).
AuctionQuantityInteger (signed)8The provisional (or final) quantity of the Auction at the end of the Session (corresponds to field in Auction table).
ExtensionInteger (unsigned)2Count for extensions for this record
UpdateNumberInteger (unsigned)8A number that records every change that happens to a record. It is primarily used to avoid write after read problems when an intermediate write has changed the originally read record.
OwnerUserForeign key to User8The Id of the User that owns this AuctionSession.
OwnerGroupForeign key to Group8The Id of the Group that owns this AuctionSession.
OwnerFirmForeign key to Firm8The Id of the Firm that owns this AuctionSession.
CreateUserForeign key to User8The Id of the User that created this AuctionSession.
CreateTimestampInteger (unsigned)8The time at which this AuctionSession was created.
UpdateUserForeign key to User8The Id of the User that last updated this AuctionSession.
UpdateTimestampInteger (unsigned)8The time at which this AuctionSession was last updated.

Foreign Keys

The following diagram shows the tables that have a foreign key link to the AuctionSession table. All Table nodes can be clicked to take you to that table's definition page.

graph LR;
	Auction-->|AuctionSession|AuctionSession
	click Auction "/marketgrid/developer/model/tables/Auction"
	SessionTime-->|AuctionSession|AuctionSession
	click SessionTime "/marketgrid/developer/model/tables/SessionTime"