Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 AMOUNT money   Default = 0 The amount of the revenue tribute.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 REVENUETRIBUTEID uniqueidentifier The id of the loaded revenue tribute

Foreign Key Field Type Null Notes Description
 BATCHREVENUEID uniqueidentifier   BATCHREVENUE.ID Indicates the batch row this tribute applies to.
 TRIBUTEID uniqueidentifier   TRIBUTE.LOCALID FK to TRIBUTE
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHREVENUETRIBUTE_BATCHREVENUEID BATCHREVENUEID      
 IX_BATCHREVENUETRIBUTE_DATEADDED DATEADDED    
 IX_BATCHREVENUETRIBUTE_DATECHANGED DATECHANGED      
 PK_BATCHREVENUETRIBUTE ID  

Trigger Name Description
 TR_BATCHREVENUETRIBUTE_AUDIT_UPDATE
 TR_BATCHREVENUETRIBUTE_AUDIT_DELETE

Entity-Relationship diagram of this table