Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 AMOUNT money   Default = 0 The minimum amount that qualifies to receive this benefit.
 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.
 ORGANIZATIONAMOUNT money   Default = 0 The minimum amount that qualifies to receive this benefit in organization currency.

Foreign Key Field Type Null Notes Description
 APPEALID uniqueidentifier   APPEAL.LOCALID The appeal record to which this benefit belongs.
 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 goal to organization goal.
 BASECURRENCYID uniqueidentifier CURRENCY.ID The base currency associated with this appealbenefit.

Index Name Field(s) Unique Primary Clustered
 IX_APPEALBENEFIT_BASECURRENCYID BASECURRENCYID      
 IX_APPEALBENEFIT_DATEADDED DATEADDED    
 IX_APPEALBENEFIT_DATECHANGED DATECHANGED      
 IX_APPEALBENEFIT_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID      
 PK_APPEALBENEFIT ID  
 UIX_APPEALBENEFIT_APPEALID_AMOUNT APPEALID, AMOUNT    

Trigger Name Description
 TR_APPEALBENEFIT_AUDIT_UPDATE
 TR_APPEALBENEFIT_AUDIT_DELETE
 TR_APPEALBENEFIT_INSERTUPDATE_CURRENCY

Referenced by Field
 APPEALBENEFITDETAIL APPEALBENEFITID

Entity-Relationship diagram of this table