Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 DATEADDED datetime   Default = getdate()
 DATECHANGED datetime   Default = getdate()
 TS timestamp  
 TSLONG bigint (Computed) CONVERT(bigint, TS)

Foreign Key Field Type Null Notes Description
 MERCHANTACCOUNTID uniqueidentifier   MERCHANTACCOUNT.ID
 SITEID uniqueidentifier   SITE.ID
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID

Index Name Field(s) Unique Primary Clustered
 IX_MERCHANTACCOUNTSITE_DATEADDED DATEADDED    
 IX_MERCHANTACCOUNTSITE_DATECHANGED DATECHANGED      
 IX_MERCHANTACCOUNTSITE_SITEID SITEID      
 PK_MERCHANTACCOUNTSITE ID  
 UIX_MERCHANTACCOUNTSITE_MERCHANTACCOUNTID_SITEID MERCHANTACCOUNTID, SITEID    

Trigger Name Description
 TR_MERCHANTACCOUNTSITE_AUDIT_UPDATE
 TR_MERCHANTACCOUNTSITE_AUDIT_DELETE

Entity-Relationship diagram of this table