SALESORDERITEMTICKET

Stores data for a ticket on a sales order.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
PRICE money Default = 0 The price of the ticket
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
PROGRAMNAME nvarchar(100) Default = '' Name of program at time of sale.
PROGRAMCATEGORYNAME nvarchar(100) Default = '' Program category name at time of sale.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier SALESORDERITEM.ID Primary Key.
PROGRAMID uniqueidentifier yes PROGRAM.ID The program for this ticket
EVENTID uniqueidentifier yes EVENT.ID The event for this ticket.
PRICETYPECODEID uniqueidentifier PRICETYPECODE.ID The price type for this ticket.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_SALESORDERITEMTICKET_DATEADDED DATEADDED yes
IX_SALESORDERITEMTICKET_DATECHANGED DATECHANGED
IX_SALESORDERITEMTICKET_EVENTID EVENTID
IX_SALESORDERITEMTICKET_PROGRAMID PROGRAMID
PK_SALESORDERITEMTICKET ID yes yes

Triggers

Trigger Name Description
TR_SALESORDERITEMTICKET_AUDIT_UPDATE
TR_SALESORDERITEMTICKET_AUDIT_DELETE

Referenced by

Referenced by Field
RESCHEDULETICKETSHISTORY SALESORDERITEMTICKETID
SALESORDERITEMTICKETCOMBINATION ID
SALESORDERITEMTICKETREGISTRANT SALESORDERITEMTICKETID
TICKET SALESORDERITEMTICKETID