CONSTITUENTRECOGNITIONDECLINEDLEVEL

Table to hold all of the declined recognition program levels for constituents

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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
RECOGNITIONLEVELID uniqueidentifier RECOGNITIONLEVEL.ID The declined recognition level(s) for this constituent.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID The constituent record associated with the recognition program.
RECOGNITIONPROGRAMID uniqueidentifier RECOGNITIONPROGRAM.ID The recognition program associated with the declined level.
REASONCODEID uniqueidentifier yes RECOGNITIONDECLINEDLEVELREASONCODE.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_CONSTITUENTRECOGNITIONDECLINEDLEVEL_DATEADDED DATEADDED yes
IX_CONSTITUENTRECOGNITIONDECLINEDLEVEL_DATECHANGED DATECHANGED
PK_CONSTITUENTRECOGNITIONDECLINEDLEVEL ID yes yes
UIX_CONSTITUENTRECOGNITIONDECLINEDLEVEL_CONSTITUENTID_RECOGNITIONPROGRAMID_RECOGNITIONLEVELID CONSTITUENTID, RECOGNITIONPROGRAMID, RECOGNITIONLEVELID yes

Triggers

Trigger Name Description
TR_CONSTITUENTRECOGNITIONDECLINEDLEVEL_AUDIT_UPDATE
TR_CONSTITUENTRECOGNITIONDECLINEDLEVEL_AUDIT_DELETE