Primary Key Field Type
 ID uniqueidentifier

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) 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) 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 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 CURRENCY.ID The base currency associated with the benefit.
 BASEEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert the total value to the currency of the event.
 ORGANIZATIONEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert to the organization amount.

Index Name Field(s) Unique Primary Clustered
 IX_REGISTRANTBENEFIT_BASECURRENCYID BASECURRENCYID      
 IX_REGISTRANTBENEFIT_BASEEXCHANGERATEID BASEEXCHANGERATEID      
 IX_REGISTRANTBENEFIT_BENEFITID BENEFITID      
 IX_REGISTRANTBENEFIT_DATEADDED DATEADDED    
 IX_REGISTRANTBENEFIT_DATECHANGED DATECHANGED      
 IX_REGISTRANTBENEFIT_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID      
 PK_REGISTRANTBENEFIT ID  

Trigger Name Description
 TR_REGISTRANTBENEFIT_AUDIT_ETLDELETEDID
 TR_REGISTRANTBENEFIT_AUDIT_UPDATE
 TR_REGISTRANTBENEFIT_AUDIT_DELETE
 TR_REGISTRANTBENEFIT_INSERTUPDATE_CURRENCY

Entity-Relationship diagram of this table