REVENUELOCKBOX

Contains revenue information for a lockbox

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
BATCHNUMBER nvarchar(100) Default = '' Holds the batch number the lockbox information was created by.
BATCHSEQUENCE int Default = 0 Holds row the lockbox information was in when created from batch.
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
ID uniqueidentifier FINANCIALTRANSACTION.ID Primary Key.
LOCKBOXID uniqueidentifier LOCKBOX.ID the lockbox id related to the revenue.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_REVENUELOCKBOX_DATEADDED DATEADDED yes
IX_REVENUELOCKBOX_DATECHANGED DATECHANGED
PK_REVENUELOCKBOX ID yes yes
UIX_REVENUELOCKBOX_LOCKBOXID_BATCHNUMBER_BATCHSEQUENCE LOCKBOXID, BATCHNUMBER, BATCHSEQUENCE yes

Triggers

Trigger Name Description
TR_REVENUELOCKBOX_AUDIT_UPDATE
TR_REVENUELOCKBOX_AUDIT_DELETE