BATCHREVENUESOLICITOR
Stores solicitors for batch rows.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| 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) |
yes |
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 |
yes |
|
The ID of the application this solicitor is linked to. |
| APPLICATIONTYPE |
nvarchar(22) (Computed) |
yes |
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 |
yes |
|
Solicitor id for revenue update batch. |
| ADDITIONALAPPLICATIONDECLINESGIFTAID |
bit |
|
Default = 0 |
|
| ADDITIONALAPPLICATIONTYPE |
nvarchar(31) (Computed) |
yes |
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 |
yes |
|
|
Foreign Keys
| 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 |
yes |
DESIGNATION.ID
|
The designation of the additional application this solicitor is linked to. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_BATCHREVENUESOLICITOR_BATCHREVENUEID |
BATCHREVENUEID |
|
|
|
| IX_BATCHREVENUESOLICITOR_CONSTITUENTID |
CONSTITUENTID |
|
|
|
| IX_BATCHREVENUESOLICITOR_DATEADDED |
DATEADDED |
|
|
yes |
| IX_BATCHREVENUESOLICITOR_DATECHANGED |
DATECHANGED |
|
|
|
| PK_BATCHREVENUESOLICITOR |
ID |
yes |
yes |
|
Triggers