BATCHREVENUEBUSINESSUNIT (4.0SP17)

Stores busienss units associated with a single revenue application.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHREVENUEID

uniqueidentifier

false

FK to BATCHREVENUE

BUSINESSUNITCODEID

uniqueidentifier

false

FK to BUSINESSUNITCODE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

AMOUNT

money

false

0

Amount of money given to this business unit.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

REVENUESPLITBUSINESSUNITID

uniqueidentifier

true

Used by revenue update batch to reference a one-of business unit.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHREVENUEBUSINESSUNIT_DATEADDED

DATEADDED

False

False

True

IX_BATCHREVENUEBUSINESSUNIT_DATECHANGED

DATECHANGED

False

False

False

PK_BATCHREVENUEBUSINESSUNIT

ID

True

True

False

UIX_BATCHREVENUEBUSINESSUNIT_BATCHREVENUEID_BUSINESSUNITCODEID

BATCHREVENUEID

BUSINESSUNITCODEID

True

False

False

Triggers
Trigger Name Description

TR_BATCHREVENUEBUSINESSUNIT_AUDIT_UPDATE

TR_BATCHREVENUEBUSINESSUNIT_AUDIT_DELETE