Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 PERCENTAPPLICABLEAMOUNT money   Default = 0 This is the amount used to determine the value for percentage based benefits
 VALUEPERCENT decimal(20, 4)   Default = 0 This is the percentage used to determine the value for percentage based benefits
 DETAILS nvarchar(255)   Default = '' Details
 SEQUENCE int   Default = 0
 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.
 REVENUEBENEFITID uniqueidentifier The benefit record id that's updated in revenueu update batch.

Foreign Key Field Type Null Notes Description
 BATCHREVENUEID uniqueidentifier   BATCHREVENUE.ID Indicates the batch row this benefit applies to.
 BENEFITID uniqueidentifier   BENEFIT.ID Benefit
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHREVENUEBENEFITPCT_BATCHREVENUEID BATCHREVENUEID      
 IX_BATCHREVENUEBENEFITPCT_DATEADDED DATEADDED    
 IX_BATCHREVENUEBENEFITPCT_DATECHANGED DATECHANGED      
 PK_BATCHREVENUEBENEFITPCT ID  

Trigger Name Description
 TR_BATCHREVENUEBENEFITPCT_AUDIT_UPDATE
 TR_BATCHREVENUEBENEFITPCT_AUDIT_DELETE

Entity-Relationship diagram of this table