SEQUENCE |
int |
|
Default = 0 |
|
CONSTITUENTID |
uniqueidentifier |
|
|
|
DONORID |
uniqueidentifier |
|
|
|
PLANNEDENDDATE |
date |
yes |
|
Planned end date for fixed term sponsorships. |
SPONSORSHIPOPPORTUNITYTYPECODE |
tinyint |
|
Default = 1 |
1=Child, 2=Project |
SPONSORSHIPOPPORTUNITYTYPE |
nvarchar(7) (Computed) |
yes |
CASE [SPONSORSHIPOPPORTUNITYTYPECODE] WHEN 1 THEN N'Child' WHEN 2 THEN N'Project' END |
Provides a translation for the 'SPONSORSHIPOPPORTUNITYTYPECODE' field. |
STARTDATE |
date |
yes |
|
|
ENDDATE |
date |
yes |
|
|
CHILDGENDERCODE |
tinyint |
|
Default = 0 |
0=Greatest need, 1=Male, 2=Female |
CHILDGENDER |
nvarchar(13) (Computed) |
yes |
CASE [CHILDGENDERCODE] WHEN 0 THEN N'Greatest need' WHEN 1 THEN N'Male' WHEN 2 THEN N'Female' END |
Provides a translation for the 'CHILDGENDERCODE' field. |
ISHIVPOSITIVECODE |
tinyint |
|
Default = 0 |
0=Greatest need, 1=Yes, 2=No |
ISHIVPOSITIVE |
nvarchar(13) (Computed) |
yes |
CASE [ISHIVPOSITIVECODE] WHEN 0 THEN N'Greatest need' WHEN 1 THEN N'Yes' WHEN 2 THEN N'No' END |
Provides a translation for the 'ISHIVPOSITIVECODE' field. |
HASCONDITIONCODE |
tinyint |
|
Default = 0 |
0=Greatest need, 1=Yes, 2=No |
HASCONDITION |
nvarchar(13) (Computed) |
yes |
CASE [HASCONDITIONCODE] WHEN 0 THEN N'Greatest need' WHEN 1 THEN N'Yes' WHEN 2 THEN N'No' END |
Provides a translation for the 'HASCONDITIONCODE' field. |
ISORPHANEDCODE |
tinyint |
|
Default = 0 |
0=Greatest need, 1=Yes, 2=No |
ISORPHANED |
nvarchar(13) (Computed) |
yes |
CASE [ISORPHANEDCODE] WHEN 0 THEN N'Greatest need' WHEN 1 THEN N'Yes' WHEN 2 THEN N'No' END |
Provides a translation for the 'ISORPHANEDCODE' field. |
ISSOLESPONSORSHIP |
bit |
|
Default = 0 |
Indicates that this sponsorship is the sole sponsorship for a child. |
AMOUNT |
money |
|
Default = 0 |
Amount of sponsorship |
PAYMENTMETHODCODE |
tinyint |
|
Default = 0 |
The method of payment in which the revenue was received. |
FREQUENCYCODE |
tinyint |
|
Default = 0 |
Indicates the frequency of the installment. |
FREQUENCY |
nvarchar(18) (Computed) |
yes |
CASE [FREQUENCYCODE] WHEN 0 THEN N'Annually' WHEN 1 THEN N'Semi-annually' WHEN 2 THEN N'Quarterly' WHEN 3 THEN N'Monthly' WHEN 4 THEN N'Irregular' WHEN 5 THEN N'Single Installment' WHEN 6 THEN N'Bimonthly' WHEN 7 THEN N'Semi-Monthly' WHEN 8 THEN N'Biweekly' WHEN 9 THEN N'Weekly' END |
Provides a translation for the 'FREQUENCYCODE' field. |
AUTOPAY |
bit |
|
Default = 1 |
Automatically pay installments. |
REFERENCEDATE |
UDT_FUZZYDATE |
|
Default = '00000000' |
The date that the reference was made. |
REFERENCENUMBER |
nvarchar(20) |
|
Default = '' |
|
CONSTITUENTACCOUNTID |
uniqueidentifier |
yes |
|
|
SENDREMINDER |
bit |
|
Default = 0 |
Send reminders for payments |
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. |
FINDERNUMBER |
bigint |
|
Default = ((0)) |
|
SOURCECODE |
nvarchar(50) |
|
Default = '' |
|
APPEALID |
uniqueidentifier |
yes |
|
|
CHANNELCODEID |
uniqueidentifier |
yes |
|
|
MAILINGID |
uniqueidentifier |
yes |
|
|
REFERENCE |
nvarchar(255) |
|
Default = '' |
|
REVENUECATEGORYID |
uniqueidentifier |
yes |
|
|
ISGIFTSPONSORSHIP |
bit |
|
Default = 0 |
|
REVENUESCHEDULESTARTDATE |
datetime |
yes |
|
|
REVENUESCHEDULEENDDATE |
datetime |
yes |
|
|
BASEEXCHANGERATEID |
uniqueidentifier |
yes |
|
The exchange rate used to convert from transaction amount to amount. |
EXCHANGERATE |
decimal(20, 8) |
|
Default = 0 |
The rate to use when adding a spot rate. |
COMMITMENTID |
nvarchar(100) |
|
Default = '' |
The commitment ID that will be assigned to this sponsorship record |
PAYMENTMETHOD |
nvarchar(47) (Computed) |
yes |
CASE [PAYMENTMETHODCODE] WHEN 0 THEN N'Cash' WHEN 1 THEN N'Check' WHEN 2 THEN N'Credit card' WHEN 3 THEN N'Direct debit' WHEN 4 THEN N'Stock' WHEN 5 THEN N'Property' WHEN 6 THEN N'Gift-in-kind' WHEN 9 THEN N'None' WHEN 10 THEN N'Other' WHEN 11 THEN N'Standing order' WHEN 98 THEN N'Credit card - store last 4 digits for reference' END |
|
CARDHOLDERNAME |
nvarchar(255) |
|
Default = '' |
|
CREDITCARDPARTIALNUMBER |
nvarchar(4) |
|
Default = '' |
|
EXPIRESON |
UDT_FUZZYDATE |
|
Default = '00000000' |
|