DONORCHALLENGEEXCLUDEDAPPLICATIONTYPE

Stores application types excluded from matching gifts with donor challenges.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
APPLICATIONCODE tinyint Default = 0 Payment type to exclude from this donor challenge.
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.
APPLICATION nvarchar(19) (Computed) yes CASE [APPLICATIONCODE] WHEN 0 THEN N'Donation' WHEN 1 THEN N'Event registration' WHEN 2 THEN N'Pledge' WHEN 3 THEN N'Recurring gift' WHEN 4 THEN N'Other' WHEN 5 THEN N'Membership' WHEN 6 THEN N'Planned gift' WHEN 7 THEN N'Matching gift claim' WHEN 8 THEN N'Grant award' END Provides a translation for the 'APPLICATIONCODE' field.

Foreign Keys

Foreign Key Field Type Null Notes Description
DONORCHALLENGEID uniqueidentifier DONORCHALLENGE.ID The donor challenge record to which this application type belongs.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_DONORCHALLENGEEXCLUDEDAPPLICATIONTYPE_DATEADDED DATEADDED yes
IX_DONORCHALLENGEEXCLUDEDAPPLICATIONTYPE_DATECHANGED DATECHANGED
PK_DONORCHALLENGEEXCLUDEDAPPLICATIONTYPE ID yes yes
UIX_DONORCHALLENGEEXCLUDEDAPPLICATIONTYPE_DONORCHALLENGEID_APPLICATIONCODE DONORCHALLENGEID, APPLICATIONCODE yes

Triggers

Trigger Name Description
TR_DONORCHALLENGEEXCLUDEDAPPLICATIONTYPE_AUDIT_UPDATE
TR_DONORCHALLENGEEXCLUDEDAPPLICATIONTYPE_AUDIT_DELETE