CONSTITUENTCORRESPONDENCERESPONSE

Associates interactions with constituent correspondence responses.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATE datetime yes
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
CONSTITUENTCORRESPONDENCEID uniqueidentifier CONSTITUENTCORRESPONDENCE.ID The constituent correspondence record to which this response belongs.
RESPONSEID uniqueidentifier RESPONSE.ID FK to RESPONSE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_CONSTITUENTCORRESPONDENCERESPONSE_CONSTITUENTCORRESPONDENCEID CONSTITUENTCORRESPONDENCEID
IX_CONSTITUENTCORRESPONDENCERESPONSE_DATEADDED DATEADDED yes
IX_CONSTITUENTCORRESPONDENCERESPONSE_DATECHANGED DATECHANGED
IX_CONSTITUENTCORRESPONDENCERESPONSE_RESPONSEID RESPONSEID
PK_CONSTITUENTCORRESPONDENCERESPONSE ID yes yes

Triggers

Trigger Name Description
TR_CONSTITUENTCORRESPONDENCERESPONSE_T2BDELETE
TR_CONSTITUENTCORRESPONDENCERESPONSE_AUDIT_UPDATE
TR_CONSTITUENTCORRESPONDENCERESPONSE_AUDIT_DELETE
TR_CONSTITUENTCORRESPONDENCERESPONSE_T2BINSERTUPDATE