Primary Key Field Type
 ID uniqueidentifier

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

Foreign Key Field Type Null Notes Description
 EVENTLOCATIONID uniqueidentifier   EVENTLOCATION.ID FK to EVENTLOCATION
 PROGRAMID uniqueidentifier   PROGRAM.ID FK to PROGRAM
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_PROGRAMLOCATION_DATEADDED DATEADDED    
 IX_PROGRAMLOCATION_DATECHANGED DATECHANGED      
 PK_PROGRAMLOCATION ID  
 UIX_PROGRAMLOCATION_PROGRAMID_EVENTLOCATIONID PROGRAMID, EVENTLOCATIONID    

Trigger Name Description
 TR_PROGRAMLOCATION_AUDIT_UPDATE
 TR_PROGRAMLOCATION_AUDIT_DELETE

Entity-Relationship diagram of this table