GLACCOUNTBATCH
                                        Table used for account batch entry.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | 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) | yes | CONVERT(bigint, TS) | Numeric representation of the timestamp. | 
                                                
                                                    | ACCOUNTALIAS | nvarchar(255) |  | Default = '' | Account Alias | 
                                            
                                        
                                        Foreign Keys
                                        
                                            
                                                
                                                    | 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 | yes | PDACCOUNTSYSTEM.ID | Account system | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_GLACCOUNTBATCH_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_GLACCOUNTBATCH_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | PK_GLACCOUNTBATCH | ID | yes | yes |  | 
                                                
                                                    | UIX_GLACCOUNTBATCH_ACCOUNTNUMBER_BATCHID_PDACCOUNTSYSTEMID | ACCOUNTNUMBER, BATCHID, PDACCOUNTSYSTEMID | yes |  |  | 
                                            
                                        
                                        Triggers
                                        
                                        Referenced by