MATCHINGGIFTCONDITION (4.0SP17)

This table contains an organization's conditions for matching gifts.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ORGANIZATIONID

uniqueidentifier

false

FK to CONSTITUENT

MATCHINGGIFTCONDITIONTYPECODEID

uniqueidentifier

false

FK to MATCHINGGIFTCONDITIONTYPECODE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this revenue.

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert to organization amount.

Fields
Field Field Type Null Notes Description

MATCHINGFACTOR

decimal(5, 2)

false

0

Stores the ratio at which the organization commonly matches gifts for the relationship type.

MAXMATCHANNUAL

money

false

0

Stores the maximum annual matching gift contribution per donor for the relationship type.

MAXMATCHPERGIFT

money

false

0

Stores the maximum matching gift contribution per gift for the relationship type.

MAXMATCHTOTAL

money

false

0

Stores the maximum total matching gift contribution per donor for the relationship type.

MINMATCHPERGIFT

money

false

0

Stores the minimum matching gift contribution per gift for the relationship type.

NOTES

nvarchar(max)

false

''

Stores notes regarding the matching gift condition.

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.

MATCHTYPECODE

tinyint

false

0

Specifies how the organization calculates its match amount.

MATCHTYPE

nvarchar(27) (Computed)

true

Provides a translation for the 'MATCHTYPECODE' field.

REVENUETYPECODE

tinyint

false

0

Revenue split type.

REVENUETYPE

nvarchar(11) (Computed)

true

Provides a translation for the 'REVENUETYPECODE' field.

SEQUENCE

int

false

0

Specifies the order in which to use conditions in the case of multiple matches.

ORGANIZATIONMAXMATCHANNUAL

money

false

0

Stores the maximum annual matching gift contribution per donor for the relationship type in organization currency.

ORGANIZATIONMAXMATCHPERGIFT

money

false

0

Stores the maximum matching gift contribution per gift for the relationship type in organization currency.

ORGANIZATIONMAXMATCHTOTAL

money

false

0

Stores the maximum total matching gift contribution per donor for the relationship type in organization currency.

ORGANIZATIONMINMATCHPERGIFT

money

false

0

Stores the minimum matching gift contribution per gift for the relationship type in organization currency.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_MATCHINGGIFTCONDITION_DATEADDED

DATEADDED

False

False

True

IX_MATCHINGGIFTCONDITION_DATECHANGED

DATECHANGED

False

False

False

PK_MATCHINGGIFTCONDITION

ID

True

True

False

UIX_MATCHINGGIFTCONDITION_ORGANIZATIONID_MATCHINGGIFTCONDITIONTYPECODEID

ORGANIZATIONID

MATCHINGGIFTCONDITIONTYPECODEID

True

False

False

Triggers
Trigger Name Description

TR_MATCHINGGIFTCONDITION_MARKORGANIZATIONASCONSTITUENT

TR_MATCHINGGIFTCONDITION_AUDIT_UPDATE

TR_MATCHINGGIFTCONDITION_AUDIT_DELETE

TR_MATCHINGGIFTCONDITION_INSERTUPDATE_CURRENCY

Referenced by
Referenced by Field

BATCHREVENUE

MGCONDITIONID

BATCHREVENUEENHANCEDMATCHINGGIFTS

MATCHINGGIFTCONDITIONID

MATCHINGGIFTCONDITIONRELATIONSHIP

MATCHINGGIFTCONDITIONID

REVENUEMATCHINGGIFT

MATCHINGGIFTCONDITIONID