Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 ACCOUNTNUMBER nvarchar(100)   Default = '' Account Number
 ACCOUNTDESCRIPTION nvarchar(100)   Default = '' Account Description
 SEQUENCE int   Default = 0 Sequence
 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.
 ACCOUNTALIAS nvarchar(255)   Default = '' Account Alias

Foreign Key Field Type Null Notes Description
 BATCHID uniqueidentifier   BATCH.ID Indicates the batch to which this record belongs.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 PDACCOUNTSYSTEMID uniqueidentifier PDACCOUNTSYSTEM.ID Account system

Index Name Field(s) Unique Primary Clustered
 IX_GLACCOUNTBATCH_DATEADDED DATEADDED    
 IX_GLACCOUNTBATCH_DATECHANGED DATECHANGED      
 PK_GLACCOUNTBATCH ID  
 UIX_GLACCOUNTBATCH_ACCOUNTNUMBER_BATCHID_PDACCOUNTSYSTEMID ACCOUNTNUMBER, BATCHID, PDACCOUNTSYSTEMID    

Trigger Name Description
 TR_GLACCOUNTBATCH_AUDIT_UPDATE
 TR_GLACCOUNTBATCH_AUDIT_DELETE

Referenced by Field
 GLACCOUNTBATCHBATCHSYSTEMMESSAGES GLACCOUNTBATCHID
 GLACCOUNTBATCHBATCHUSERMESSAGE ID

Entity-Relationship diagram of this table