BATCHREVENUEAPPLICATIONPLEDGEPERCENTAGEBENEFIT

Stores percentage benefit information for new pledges added during the revenue batch process.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
PERCENTAPPLICABLEAMOUNT money Default = 0
VALUEPERCENT decimal(20, 2) Default = 0
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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHREVENUEAPPLICATIONPLEDGEID uniqueidentifier BATCHREVENUEAPPLICATIONPLEDGE.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.

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHREVENUEAPPLICATIONPLEDGEPERCENTAGEBENEFIT_DATEADDED DATEADDED yes
IX_BATCHREVENUEAPPLICATIONPLEDGEPERCENTAGEBENEFIT_DATECHANGED DATECHANGED
PK_BATCHREVENUEAPPLICATIONPLEDGEPERCENTAGEBENEFIT ID yes yes

Triggers

Trigger Name Description
TR_BATCHREVENUEAPPLICATIONPLEDGEPERCENTAGEBENEFIT_AUDIT_UPDATE
TR_BATCHREVENUEAPPLICATIONPLEDGEPERCENTAGEBENEFIT_AUDIT_DELETE