TRACK

Table to store basic track information.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = '' Name given to identify a track.
DESCRIPTION nvarchar(255) Default = '' Field used to better describe the track.
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
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_TRACK_DATEADDED DATEADDED yes
IX_TRACK_DATECHANGED DATECHANGED
PK_TRACK ID yes yes
UC_TRACK_NAME NAME yes

Triggers

Trigger Name Description
TR_TRACK_AUDIT_UPDATE
TR_TRACK_AUDIT_DELETE

Referenced by

Referenced by Field
ITINERARY TRACKID
TRACKITEM TRACKID
TRACKRESOURCE TRACKID
TRACKSTAFFRESOURCE TRACKID