Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 VALUE money   Default = 0 The unit cost for this benefit item.
 QUANTITY int   Default = 0 The number of benefit items associated with this detail record.
 SEQUENCE int   Default = 0 The sequence of the benefit item within the benefit level.
 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.
 VALUEPERCENT decimal(20, 4)   Default = 0
 ORGANIZATIONVALUE money   Default = 0 The unit cost for this benefit item in organization currency.

Foreign Key Field Type Null Notes Description
 APPEALBENEFITID uniqueidentifier   APPEALBENEFIT.ID The benefit level to which this benefit detail record belongs.
 BENEFITID uniqueidentifier   BENEFIT.ID The benefit catalog item for this detail record.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 ORGANIZATIONEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert from value to organization value.
 BASECURRENCYID uniqueidentifier CURRENCY.ID The base currency associated with this appealbenefitdetail.

Index Name Field(s) Unique Primary Clustered
 IX_APPEALBENEFITDETAIL_BASECURRENCYID BASECURRENCYID      
 IX_APPEALBENEFITDETAIL_DATEADDED DATEADDED    
 IX_APPEALBENEFITDETAIL_DATECHANGED DATECHANGED      
 IX_APPEALBENEFITDETAIL_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID      
 PK_APPEALBENEFITDETAIL ID  

Trigger Name Description
 TR_APPEALBENEFITDETAIL_INSERTUPDATE_CURRENCY
 TR_APPEALBENEFITDETAIL_AUDIT_UPDATE
 TR_APPEALBENEFITDETAIL_AUDIT_DELETE

Entity-Relationship diagram of this table