RECOGNITIONCREDIT

Stores recognition credit credits for a constituent.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
AMOUNT money Default = 0 Amount a constituent is recognized for.
EFFECTIVEDATE datetime The date a constituent is recognized as having given.
RECOGNITIONCREDITTYPECODE tinyint Default = 0 The type of this recognition credit.
RECOGNITIONCREDITTYPE nvarchar(15) (Computed) yes CASE [RECOGNITIONCREDITTYPECODE] WHEN 0 THEN N'Non-specific' WHEN 1 THEN N'Donor challenge' END Provides a translation for the 'RECOGNITIONCREDITTYPECODE' field.
ORGANIZATIONAMOUNT money Default = 0 The amount of the recognition credit in organization currency.
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 CONSTITUENT.LOCALID FK to CONSTITUENT
USERRECOGNITIONTYPECODEID uniqueidentifier yes REVENUERECOGNITIONTYPECODE.ID FK to REVENUERECOGNITIONTYPECODE
DESIGNATIONID uniqueidentifier yes DESIGNATION.ID The designation of this recognition credit.
DONORCHALLENGEENCUMBEREDID uniqueidentifier yes DONORCHALLENGEENCUMBERED.ID The matched donor challenge fund that gives this recognition credit credit.
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with this recognition credit.
ORGANIZATIONEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to convert from amount to organization amount.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_RECOGNITIONCREDIT_BASECURRENCYID BASECURRENCYID
IX_RECOGNITIONCREDIT_CONSTITUENTID CONSTITUENTID
IX_RECOGNITIONCREDIT_DATEADDED DATEADDED yes
IX_RECOGNITIONCREDIT_DATECHANGED DATECHANGED
IX_RECOGNITIONCREDIT_DONORCHALLENGEENCUMBEREDID DONORCHALLENGEENCUMBEREDID
IX_RECOGNITIONCREDIT_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID
PK_RECOGNITIONCREDIT ID yes yes

Triggers

Trigger Name Description
TR_RECOGNITIONCREDIT_INSERTUPDATE_CURRENCY
TR_RECOGNITIONCREDIT_AUDIT_UPDATE
TR_RECOGNITIONCREDIT_AUDIT_DELETE

Referenced by

Referenced by Field
CONSTITUENTRECOGNITIONREVENUE RECOGNITIONCREDITID