DONORCHALLENGE (4.0SP20)

Stores infomation pertaining to donor challenges.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

EXTERNALSPONSORID

uniqueidentifier

true

Constituent record of the external sponsor.

INTERNALSPONSORCODEID

uniqueidentifier

true

Interal sponsor record.

REVENUERECOGNITIONTYPECODEID

uniqueidentifier

true

Default recognition credit type to use when creating matched gifts.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

LUMPSUMMATCHREVENUEID

uniqueidentifier

true

Revenue record for the matched fund.

SITEID

uniqueidentifier

true

The site associated with this donor challenge.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this donor challenge.

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

FK to CURRENCYEXCHANGERATE

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

Name of donor challenge.

TYPECODE

tinyint

false

0

Payment type for challenge.

TYPE

nvarchar(14) (Computed)

true

Provides a translation for the 'TYPECODE' field.

DESCRIPTION

nvarchar(255)

false

''

Descriptive text about the donor challenge.

STARTDATE

datetime

false

Date donor challenge begins.

ENDDATE

datetime

false

Date donor challenge ends.

TOTALFUNDS

money

false

0

Amount of funds provided.

PAYPLEDGESWITHIN

tinyint

false

0

Number of units to pay pledges within.

PAYPLEDGESWITHINUNITCODE

tinyint

false

0

Units of time to pay pledges within.

PAYPLEDGESWITHINUNIT

nvarchar(6) (Computed)

true

Provides a translation for the 'PAYPLEDGESWITHINUNITCODE' field.

MATCHTYPECODE

tinyint

false

0

Gift amount to use when calculating match amount.

MATCHTYPE

nvarchar(27) (Computed)

true

Provides a translation for the 'MATCHTYPECODE' field.

MATCHINGFACTOR

decimal(5, 2)

false

0

Default factor at which gifts will be matched.

MATCHTHRESHOLD

money

false

0

Target amount for lump sum matches.

MINGIFTAMOUNT

money

false

0

Minimum gift amount to match.

MAXMATCHPERGIFT

money

false

0

Maximum match amount per matched gift.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

PROCESSLASTRUN

datetime

true

Stores the last time the encumber process was run

STATUSTYPECODE

tinyint

false

0

Gift amount to use when calculating match amount.

STATUSTYPE

nvarchar(9) (Computed)

true

Provides a translation for the 'STATUSTYPECODE' field.

ORGANIZATIONTOTALFUNDS

money

false

0

TOTALFUNDS in the organization currency.

ORGANIZATIONMATCHTHRESHOLD

money

false

0

MATCHTHRESHOLD in the organization currency.

ORGANIZATIONMINGIFTAMOUNT

money

false

0

MINGIFTAMOUNT in the organization currency.

ORGANIZATIONMAXMATCHPERGIFT

money

false

0

MAXMATCHPERGIFT in the organization currency.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_DONORCHALLENGE_DATEADDED

DATEADDED

False

False

True

IX_DONORCHALLENGE_DATECHANGED

DATECHANGED

False

False

False

IX_DONORCHALLENGE_EXTERNALSPONSORID

EXTERNALSPONSORID

False

False

False

IX_DONORCHALLENGE_LUMPSUMMATCHREVENUEID

LUMPSUMMATCHREVENUEID

False

False

False

PK_DONORCHALLENGE

ID

True

True

False

UC_DONORCHALLENGE_NAME

NAME

True

False

False

Triggers
Trigger Name Description

TR_DONORCHALLENGE_INSERTUPDATE_CURRENCY

TR_DONORCHALLENGE_AUDIT_UPDATE

TR_DONORCHALLENGE_AUDIT_DELETE

Referenced by
Referenced by Field

DONORCHALLENGEATTACHMENT

DONORCHALLENGEID

DONORCHALLENGEDESIGNATIONMAP

DONORCHALLENGEID

DONORCHALLENGEENCUMBERED

DONORCHALLENGEID

DONORCHALLENGEEXCLUDEDAPPLICATIONTYPE

DONORCHALLENGEID

DONORCHALLENGEMEDIALINK

DONORCHALLENGEID

DONORCHALLENGEMEMBERSHIPLEVELMAP

DONORCHALLENGEID

DONORCHALLENGENOTE

DONORCHALLENGEID

DONORCHALLENGESPLIT

DONORCHALLENGEID