Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 UNITVALUE money   Default = 0 The unit cost or percent of donation amount for this benefit item.
 QUANTITY int   Default = 0 The number of benefit items associated with this detail record.
 TOTALVALUE money   Default = 0 The total cost 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.
 ORGANIZATIONTOTALVALUE money   Default = 0 The total value in the organization currency.
 EVENTBASECURRENCYTOTALVALUE money   Default = 0 The total benefit value expressed in the currency of the event.

Foreign Key Field Type Null Notes Description
 EVENTPRICEID uniqueidentifier   EVENTPRICE.ID The event price to which this benefits belongs.
 BENEFITID uniqueidentifier   BENEFIT.ID The benefit related to the event price.
 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.
 ORGANIZATIONEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert to the organization amount.
 BASEEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert the total value to the currency of the event.

Index Name Field(s) Unique Primary Clustered
 IX_EVENTPRICEBENEFIT_BASECURRENCYID BASECURRENCYID      
 IX_EVENTPRICEBENEFIT_BASEEXCHANGERATEID BASEEXCHANGERATEID      
 IX_EVENTPRICEBENEFIT_BENEFITID BENEFITID      
 IX_EVENTPRICEBENEFIT_DATEADDED DATEADDED    
 IX_EVENTPRICEBENEFIT_DATECHANGED DATECHANGED      
 IX_EVENTPRICEBENEFIT_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID      
 PK_EVENTPRICEBENEFIT ID  

Trigger Name Description
 TR_EVENTPRICEBENEFIT_AUDIT_UPDATE
 TR_EVENTPRICEBENEFIT_AUDIT_DELETE
 TR_EVENTPRICEBENEFIT_INSERTUPDATE_CURRENCY

Entity-Relationship diagram of this table