BATCHREVENUEREGISTRANTBENEFIT

Contains benefit information pertaining to a registrant.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

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.

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHREVENUEREGISTRANTBENEFIT_DATEADDED DATEADDED yes
IX_BATCHREVENUEREGISTRANTBENEFIT_DATECHANGED DATECHANGED
PK_BATCHREVENUEREGISTRANTBENEFIT ID yes yes

Triggers

Trigger Name Description
TR_BATCHREVENUEREGISTRANTBENEFIT_AUDIT_UPDATE
TR_BATCHREVENUEREGISTRANTBENEFIT_AUDIT_DELETE