BATCHWORKFLOW
                                        The BATCHWORKFLOW table stores the workflows that are used for the various batches in the system.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | NAME | nvarchar(200) |  | Default = '' |  | 
                                                
                                                    | 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. | 
                                                
                                                    | EXCEPTIONBATCHNUMBERCODE | tinyint |  | Default = 0 | Indicator of how to handle exception batch numbers. | 
                                                
                                                    | INCLUDEEXCEPTIONPREFIX | bit |  | Default = 0 | Whether or not to include a prefix. | 
                                                
                                                    | EXCEPTIONPREFIX | nvarchar(8) |  | Default = '' | The prefix for the exception batch. | 
                                            
                                        
                                        Foreign Keys
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_BATCHWORKFLOW_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_BATCHWORKFLOW_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | PK_BATCHWORKFLOW | ID | yes | yes |  | 
                                                
                                                    | UC_BATCHWORKFLOW_NAME | NAME | yes |  |  | 
                                            
                                        
                                        Triggers
                                        
                                        Referenced by