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.

Foreign Key Field Type Null Notes Description
 REGISTRANTID uniqueidentifier   BATCHREVENUEREGISTRANT.ID FK to BATCHREVENUEREGISTRANT
 BENEFITID uniqueidentifier   BENEFIT.ID FK to BENEFIT
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHREVENUEREGISTRANTBENEFIT_DATEADDED DATEADDED    
 IX_BATCHREVENUEREGISTRANTBENEFIT_DATECHANGED DATECHANGED      
 PK_BATCHREVENUEREGISTRANTBENEFIT ID  

Trigger Name Description
 TR_BATCHREVENUEREGISTRANTBENEFIT_AUDIT_UPDATE
 TR_BATCHREVENUEREGISTRANTBENEFIT_AUDIT_DELETE

Entity-Relationship diagram of this table