EVENTDESIGNATION

Links events and event designations.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DEFAULT bit Default = 0 Determines whether the event designation is default or not.
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
EVENTID uniqueidentifier yes EVENT.ID The event the lodging location is linked to.
DESIGNATIONID uniqueidentifier yes DESIGNATION.ID The designation the event is linked to.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_EVENTDESIGNATION_DATEADDED DATEADDED yes
IX_EVENTDESIGNATION_DATECHANGED DATECHANGED
PK_EVENTDESIGNATION ID yes yes
UIX_EVENTDESIGNATION_EVENTID_DESIGNATIONID EVENTID, DESIGNATIONID yes

Triggers

Trigger Name Description
TR_EVENTDESIGNATION_AUDIT_UPDATE
TR_EVENTDESIGNATION_AUDIT_DELETE
TR_EVENTDESIGNATION_VALIDATEDELETE