Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 AMOUNT money   Default = 0 Indicates the amount being creditied.
 SEQUENCE int   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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 ADDITIONALAPPLICATIONTYPECODE tinyint   Default = 255 The type of additional application this solicitor is linked to.
 APPLICATIONTYPECODE tinyint   Default = 255 The type of application this solicitor is linked to.
 APPLICATIONID uniqueidentifier The ID of the application this solicitor is linked to.
 APPLICATIONTYPE nvarchar(22) (Computed) CASE [APPLICATIONTYPECODE] WHEN 1 THEN N'Pledge' WHEN 2 THEN N'Recurring gift' WHEN 3 THEN N'Matching gift claim' WHEN 4 THEN N'Planned gift' WHEN 5 THEN N'Membership' WHEN 6 THEN N'Event registration fee' WHEN 9 THEN N'Grant award' WHEN 255 THEN N'None' END Provides a translation for the 'APPLICATIONTYPECODE' field.
 REVENUESOLICITORID uniqueidentifier Solicitor id for revenue update batch.
 ADDITIONALAPPLICATIONDECLINESGIFTAID bit   Default = 0
 ADDITIONALAPPLICATIONTYPE nvarchar(31) (Computed) CASE [ADDITIONALAPPLICATIONTYPECODE] WHEN 0 THEN N'Donation' WHEN 1 THEN N'Other' WHEN 2 THEN N'Unapplied matching gift payment' WHEN 3 THEN N'Sponsorship additional donation' WHEN 255 THEN N'None' END
 ADDITIONALAPPLICATIONSPONSORSHIPID uniqueidentifier

Foreign Key Field Type Null Notes Description
 BATCHREVENUEID uniqueidentifier   BATCHREVENUE.ID Indicates the batch row this solicitor applies to.
 CONSTITUENTID uniqueidentifier   CONSTITUENT.LOCALID Indicates the solicitor who is being creditied for this batch row.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 ADDITIONALAPPLICATIONDESIGNATIONID uniqueidentifier DESIGNATION.ID The designation of the additional application this solicitor is linked to.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHREVENUESOLICITOR_BATCHREVENUEID BATCHREVENUEID      
 IX_BATCHREVENUESOLICITOR_CONSTITUENTID CONSTITUENTID      
 IX_BATCHREVENUESOLICITOR_DATEADDED DATEADDED    
 IX_BATCHREVENUESOLICITOR_DATECHANGED DATECHANGED      
 PK_BATCHREVENUESOLICITOR ID  

Trigger Name Description
 TR_BATCHREVENUESOLICITOR_AUDIT_UPDATE
 TR_BATCHREVENUESOLICITOR_AUDIT_DELETE

Entity-Relationship diagram of this table