Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 TYPECODE tinyint   Default = 0 The type of the activity.
 AMOUNT money   Default = 0 Amount of payment
 SCHEDULEDATE datetime
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 TYPE nvarchar(8) (Computed) CASE [TYPECODE] WHEN 0 THEN N'Payment' WHEN 1 THEN N'Skipped' WHEN 2 THEN N'Rollback' END Provides a translation for the 'TYPECODE' field.

Foreign Key Field Type Null Notes Description
 SOURCEREVENUEID uniqueidentifier FINANCIALTRANSACTION.ID Points to the recurring gift template
 PAYMENTREVENUEID uniqueidentifier FINANCIALTRANSACTIONLINEITEM.ID Points to the payment revenue
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 APPLICATIONCURRENCYID uniqueidentifier CURRENCY.ID The currency associated with this record's amount, which matches the transaction currency of the payment split.
 APPLICATIONEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert the transaction amount of the payment to the transaction amount of the payment split.

Index Name Field(s) Unique Primary Clustered
 IX_RECURRINGGIFTACTIVITY_APPLICATIONCURRENCYID APPLICATIONCURRENCYID      
 IX_RECURRINGGIFTACTIVITY_APPLICATIONEXCHANGERATEID APPLICATIONEXCHANGERATEID      
 IX_RECURRINGGIFTACTIVITY_DATEADDED DATEADDED    
 IX_RECURRINGGIFTACTIVITY_DATECHANGED DATECHANGED      
 IX_RECURRINGGIFTACTIVITY_PAYMENTREVENUEID PAYMENTREVENUEID      
 IX_RECURRINGGIFTACTIVITY_SOURCEREVENUEID SOURCEREVENUEID      
 PK_RECURRINGGIFTACTIVITY ID  

Trigger Name Description
 TR_RECURRINGGIFTACTIVITY_INSERTUPDATE_CURRENCY
 TR_RECURRINGGIFTACTIVITY_AUDIT_UPDATE
 TR_RECURRINGGIFTACTIVITY_AUDIT_DELETE

Entity-Relationship diagram of this table