CONSTITUENTAPPEALRESPONSE

Associates interactions with constituent appeal 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
CONSTITUENTAPPEALID uniqueidentifier CONSTITUENTAPPEAL.LOCALID 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_CONSTITUENTAPPEALRESPONSE_CONSTITUENTAPPEALID CONSTITUENTAPPEALID
IX_CONSTITUENTAPPEALRESPONSE_DATEADDED DATEADDED yes
IX_CONSTITUENTAPPEALRESPONSE_DATECHANGED DATECHANGED
IX_CONSTITUENTAPPEALRESPONSE_RESPONSEID RESPONSEID
PK_CONSTITUENTAPPEALRESPONSE ID yes yes

Triggers

Trigger Name Description
TR_CONSTITUENTAPPEALRESPONSE_AUDIT_UPDATE
TR_CONSTITUENTAPPEALRESPONSE_AUDIT_DELETE
TR_CONSTITUENTAPPEALRESPONSE_T2BINSERTUPDATE
TR_CONSTITUENTAPPEALRESPONSE_T2BDELETE