REVENUEMATCHINGGIFT

Stores matching gifts for a revenue record.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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.
ISACTIVE bit Default = 1 Indicates that a matching gift claim is active and should be included in outstanding balance reports.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier FINANCIALTRANSACTION.ID Primary Key.
MATCHINGGIFTCONDITIONID uniqueidentifier yes MATCHINGGIFTCONDITION.ID The matching gift condition for a matching gift claim.
MGSOURCEREVENUEID uniqueidentifier FINANCIALTRANSACTION.ID The original revenue record ID.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
RELATIONSHIPID uniqueidentifier yes RELATIONSHIP.ID The relationship that applies for a matching gift claim.

Indexes

Index Name Fields Unique Primary Clustered
IX_REVENUEMATCHINGGIFT_DATEADDED DATEADDED yes
IX_REVENUEMATCHINGGIFT_DATECHANGED DATECHANGED
IX_REVENUEMATCHINGGIFT_MGSOURCEREVENUEID MGSOURCEREVENUEID
PK_REVENUEMATCHINGGIFT ID yes yes

Triggers

Trigger Name Description
TR_REVENUEMATCHINGGIFT_AUDIT_UPDATE
TR_REVENUEMATCHINGGIFT_AUDIT_DELETE