Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 PRICE money   Default = 0 The price of the ticket
 STATUSCODE tinyint   Default = 0 Specifies the particular state of a ticket.
 ISACTIVE bit   Default = 1 Describes whether the ticket is active.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 TICKETNUMBER bigint (Computed) dbo.UFN_TICKET_GETTICKETNUMBER(ID) The event specific ticket number.
 STATUS nvarchar(9) (Computed) CASE [STATUSCODE] WHEN 0 THEN N'Active' WHEN 1 THEN N'Reserved' WHEN 2 THEN N'Refunded' WHEN 3 THEN N'Exchanged' END Provides a translation for the 'STATUSCODE' field.
 APPLIEDTOMEMBERSHIP bit   Default = 0 Describes whether the ticket has been applied to a membership.
 SCANDATEWITHTIMEOFFSET datetimeoffset

Foreign Key Field Type Null Notes Description
 EVENTID uniqueidentifier EVENT.ID ID of the event in which the ticket is linked.
 PRICETYPECODEID uniqueidentifier   PRICETYPECODE.ID The ID of the Price Type that belongs to the Ticket.
 HOLDID uniqueidentifier HOLD.ID The entity that is holding the ticket.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 SALESORDERITEMTICKETID uniqueidentifier SALESORDERITEMTICKET.ID The order ticket that created this ticket.
 PROGRAMID uniqueidentifier PROGRAM.ID The program of this ticket.
 APPLIEDTOMEMBERSHIPSALESORDERID uniqueidentifier SALESORDER.ID The sales order that ticket has been applied to.

Index Name Field(s) Unique Primary Clustered
 IX_TICKET_DATEADDED DATEADDED    
 IX_TICKET_DATECHANGED DATECHANGED      
 IX_TICKET_EVENTID EVENTID      
 IX_TICKET_SALESORDERITEMTICKETID SALESORDERITEMTICKETID      
 PK_TICKET ID  

Trigger Name Description
 TR_TICKET_AUDIT_UPDATE
 TR_TICKET_AUDIT_DELETE

Referenced by Field
 CREDITITEMTICKET TICKETID
 SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEMTICKET TICKETID
 TICKETPRINTINFO TICKETID

Entity-Relationship diagram of this table