CONSTITUENTMERGEOPERATIONS

This table keeps a record of all the merge operations that have been executed by constituent merge processes.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SOURCELOOKUPID nvarchar(100) Default = '' The lookup id for the constituent that was the source of the merge operation.
TARGETLOOKUPID nvarchar(100) Default = '' The lookup id for the constituent that was the target of the merge operation.
SOURCEID uniqueidentifier The system id for the constituent that was the source of the merge operation.
TARGETID uniqueidentifier The system id for the constituent that was the target of the merge operation.
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_CONSTITUENTMERGEOPERATIONS_DATEADDED DATEADDED yes
IX_CONSTITUENTMERGEOPERATIONS_DATECHANGED DATECHANGED
IX_CONSTITUENTMERGEOPERATIONS_SOURCEID SOURCEID
PK_CONSTITUENTMERGEOPERATIONS ID yes yes

Triggers

Trigger Name Description
TR_CONSTITUENTMERGEOPERATIONS_AUDIT_UPDATE
TR_CONSTITUENTMERGEOPERATIONS_AUDIT_DELETE