CONSTITUENTDATAREVIEWROLLBACK

Records of rollbacks from the constituent data review page.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
CONTEXTRECORDID uniqueidentifier The record on which the rollback was performed.
ROLLBACKAUDITID uniqueidentifier yes For updates, the after update auditid. For inserts, null or the before update/delete auditid after the row has been altered. For deletes, the before delete auditid.
SOURCEAUDITID uniqueidentifier yes The audit row whose values were used to generate the rollback. Not applicable to deletes.
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
CONSTITUENTDATAREVIEWROLLBACKREASONID uniqueidentifier yes CONSTITUENTDATAREVIEWROLLBACKREASON.ID The reason for the rollback.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_CONSTITUENTDATAREVIEWROLLBACK_CONSTITUENTDATAREVIEWROLLBACKREASONID CONSTITUENTDATAREVIEWROLLBACKREASONID
IX_CONSTITUENTDATAREVIEWROLLBACK_CONTEXTRECORDID CONTEXTRECORDID
IX_CONSTITUENTDATAREVIEWROLLBACK_DATEADDED DATEADDED yes
IX_CONSTITUENTDATAREVIEWROLLBACK_DATECHANGED DATECHANGED
IX_CONSTITUENTDATAREVIEWROLLBACK_ROLLBACKAUDITID ROLLBACKAUDITID
IX_CONSTITUENTDATAREVIEWROLLBACK_SOURCEAUDITID SOURCEAUDITID
PK_CONSTITUENTDATAREVIEWROLLBACK ID yes yes

Triggers

Trigger Name Description
TR_CONSTITUENTDATAREVIEWROLLBACK_AUDIT_UPDATE
TR_CONSTITUENTDATAREVIEWROLLBACK_AUDIT_DELETE