REGISTRANTBENEFIT
Contains benefit information pertaining to a registrant.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
UNITVALUE |
money |
|
Default = 0 |
The unit value of the benefit item. |
QUANTITY |
int |
|
Default = 0 |
The number of benefit items associated with this detail record. |
TOTALVALUE |
money |
|
Default = 0 |
Then total value of the benefit item(s). |
DETAILS |
nvarchar(255) |
|
Default = '' |
Comments |
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. |
EVENTBASECURRENCYTOTALVALUE |
money |
|
Default = 0 |
The total benefit value expressed in the currency of the event. |
ORGANIZATIONTOTALVALUE |
money |
|
Default = 0 |
The total value in the organization currency. |
BENEFITTYPECODE |
tinyint |
|
Default = 0 |
|
BENEFITTYPE |
nvarchar(33) (Computed) |
yes |
CASE [BENEFITTYPECODE] WHEN 0 THEN N'Registration' WHEN 1 THEN N'Fundraising incentive' WHEN 2 THEN N'Participant recruitment incentive' WHEN 3 THEN N'Donation retention incentive' WHEN 4 THEN N'Communications incentive' WHEN 5 THEN N'Volunteer recruitment incentive' END |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
REGISTRANTID |
uniqueidentifier |
|
REGISTRANT.ID
|
FK to REGISTRANT |
BENEFITID |
uniqueidentifier |
|
BENEFIT.ID
|
FK to BENEFIT |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with the benefit. |
BASEEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert the total value to the currency of the event. |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert to the organization amount. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_REGISTRANTBENEFIT_BASECURRENCYID |
BASECURRENCYID |
|
|
|
IX_REGISTRANTBENEFIT_BASEEXCHANGERATEID |
BASEEXCHANGERATEID |
|
|
|
IX_REGISTRANTBENEFIT_BENEFITID |
BENEFITID |
|
|
|
IX_REGISTRANTBENEFIT_DATEADDED |
DATEADDED |
|
|
yes |
IX_REGISTRANTBENEFIT_DATECHANGED |
DATECHANGED |
|
|
|
IX_REGISTRANTBENEFIT_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
PK_REGISTRANTBENEFIT |
ID |
yes |
yes |
|
Triggers