DESIGNATIONLEVELSTEWARDSHIPRECIPIENTS

This table contains stewardship recipients belonging to a Fundraising Purpose.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
STARTDATE datetime yes The first date for which this recipient is valid.
ENDDATE datetime yes The last date for which this recipient is valid.
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
CONSTITUENTID uniqueidentifier yes CONSTITUENT.LOCALID The constituent associated with this purpose.
DESIGNATIONLEVELID uniqueidentifier yes DESIGNATIONLEVEL.ID The fundraising purpose.
TYPECODEID uniqueidentifier yes STEWARDSHIPRECIPIENTTYPECODE.ID The type of stewardship recipient.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_DESIGNATIONLEVELSTEWARDSHIPRECIPIENTS_DATEADDED DATEADDED yes
IX_DESIGNATIONLEVELSTEWARDSHIPRECIPIENTS_DATECHANGED DATECHANGED
PK_DESIGNATIONLEVELSTEWARDSHIPRECIPIENTS ID yes yes
UIX_DESIGNATIONLEVELSTEWARDSHIPRECIPIENTS_CONSTITUENTID_DESIGNATIONLEVELID CONSTITUENTID, DESIGNATIONLEVELID yes

Triggers

Trigger Name Description
TR_DESIGNATIONLEVELSTEWARDSHIPRECIPIENTS_AUDIT_UPDATE
TR_DESIGNATIONLEVELSTEWARDSHIPRECIPIENTS_AUDIT_DELETE