PROGRAMEVENTLOCATION

Connects an Event to a Location.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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.
SEQUENCE int Default = 0 The sequence in which the locations are entered.

Foreign Keys

Foreign Key Field Type Null Notes Description
EVENTLOCATIONID uniqueidentifier EVENTLOCATION.ID FK to EVENTLOCATION
EVENTID uniqueidentifier yes EVENT.ID The ID of the tix event table.
EVENTCONFLICTID uniqueidentifier yes EVENTCONFLICT.ID The ID of the event conflict table.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PROGRAMEVENTLOCATION_DATEADDED DATEADDED yes
IX_PROGRAMEVENTLOCATION_DATECHANGED DATECHANGED
IX_PROGRAMEVENTLOCATION_EVENTCONFLICTID EVENTCONFLICTID
IX_PROGRAMEVENTLOCATION_EVENTID EVENTID
PK_PROGRAMEVENTLOCATION ID yes yes

Triggers

Trigger Name Description
TR_PROGRAMEVENTLOCATION_AUDIT_UPDATE
TR_PROGRAMEVENTLOCATION_AUDIT_DELETE