BATCHREVENUEAPPLICATIONBUSINESSUNIT

Stores business units associated with revenue batch applications.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
AMOUNT money Default = 0 Amount of money given to this business unit.
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.
REVENUESPLITBUSINESSUNITID uniqueidentifier yes Used by revenue update batch to reference a one-of business unit.

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHREVENUEAPPLICATIONID uniqueidentifier BATCHREVENUEAPPLICATION.ID FK to BATCHREVENUEAPPLICATION
BUSINESSUNITCODEID uniqueidentifier BUSINESSUNITCODE.ID FK to BUSINESSUNITCODE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHREVENUEAPPLICATIONBUSINESSUNIT_DATEADDED DATEADDED yes
IX_BATCHREVENUEAPPLICATIONBUSINESSUNIT_DATECHANGED DATECHANGED
PK_BATCHREVENUEAPPLICATIONBUSINESSUNIT ID yes yes
UIX_BATCHREVENUEAPPLICATIONBUSINESSUNIT_BATCHREVENUEAPPLICATIONID_BUSINESSUNITCODEID BATCHREVENUEAPPLICATIONID, BUSINESSUNITCODEID yes

Triggers

Trigger Name Description
TR_BATCHREVENUEAPPLICATIONBUSINESSUNIT_AUDIT_UPDATE
TR_BATCHREVENUEAPPLICATIONBUSINESSUNIT_AUDIT_DELETE