BATCHREVENUEAPPLICATIONPLEDGESPLIT

Stores split information about a new pledge added during the revenue batch process.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
AMOUNT money Default = 0
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.
DECLINESGIFTAID bit Default = 0 Indicates whether Gift Aid is declined for this split.

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHREVENUEAPPLICATIONPLEDGEID uniqueidentifier BATCHREVENUEAPPLICATIONPLEDGE.ID FK to BATCHREVENUEAPPLICATIONPLEDGE
DESIGNATIONID uniqueidentifier DESIGNATION.ID FK to DESIGNATION
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHREVENUEAPPLICATIONPLEDGESPLIT_BATCHREVENUEAPPLICATIONPLEDGEID BATCHREVENUEAPPLICATIONPLEDGEID
IX_BATCHREVENUEAPPLICATIONPLEDGESPLIT_DATEADDED DATEADDED yes
IX_BATCHREVENUEAPPLICATIONPLEDGESPLIT_DATECHANGED DATECHANGED
PK_BATCHREVENUEAPPLICATIONPLEDGESPLIT ID yes yes

Triggers

Trigger Name Description
TR_BATCHREVENUEAPPLICATIONPLEDGESPLIT_AUDIT_UPDATE
TR_BATCHREVENUEAPPLICATIONPLEDGESPLIT_AUDIT_DELETE