TRACKITEM
Daily programs, events, and custom items for a track.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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. |
TYPE |
nvarchar(23) (Computed) |
yes |
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. |
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. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
TRACKID |
uniqueidentifier |
|
TRACK.ID
|
The ID of the track that the track item belongs to. |
PROGRAMID |
uniqueidentifier |
yes |
PROGRAM.ID
|
The program of the track item. |
EVENTLOCATIONID |
uniqueidentifier |
yes |
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. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_TRACKITEM_DATEADDED |
DATEADDED |
|
|
yes |
IX_TRACKITEM_DATECHANGED |
DATECHANGED |
|
|
|
IX_TRACKITEM_TRACKID |
TRACKID |
|
|
|
PK_TRACKITEM |
ID |
yes |
yes |
|
Triggers
Referenced by