Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100)   Default = '' Custom name given to the track item.
 STARTDAY tinyint   Default = 0 Number that represents which day of the reservation the track item will start.
 STARTTIME UDT_HOURMINUTE   Default = '' The time the track item will start.
 ENDDAY tinyint   Default = 0 Number that represents which day of the reservation the track item will end.
 ENDTIME UDT_HOURMINUTE   Default = '' The time the track item will end.
 BLOCKEVENT bit   Default = 0 Determines whether to block the event or location from other groups.
 NOTES nvarchar(500)   Default = '' The notes for the track item.
 TYPECODE tinyint   Default = 0 Specifies the type of track item.
 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.
 TYPE nvarchar(23) (Computed) CASE [TYPECODE] WHEN 0 THEN N'Scheduled event' WHEN 1 THEN N'Daily admission program' WHEN 2 THEN N'Custom item' END Provides a translation for the 'TYPECODE' field.

Foreign Key Field Type Null Notes Description
 TRACKID uniqueidentifier   TRACK.ID The ID of the track that the track item belongs to.
 PROGRAMID uniqueidentifier PROGRAM.ID The program of the track item.
 EVENTLOCATIONID uniqueidentifier EVENTLOCATION.ID The location where a custom track item will take place.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_TRACKITEM_DATEADDED DATEADDED    
 IX_TRACKITEM_DATECHANGED DATECHANGED      
 IX_TRACKITEM_TRACKID TRACKID      
 PK_TRACKITEM ID  

Trigger Name Description
 TR_TRACKITEM_AUDIT_UPDATE
 TR_TRACKITEM_AUDIT_DELETE

Referenced by Field
 TRACKITEMRESOURCE TRACKITEMID
 TRACKITEMSTAFFRESOURCE TRACKITEMID

Entity-Relationship diagram of this table