SYSTEMROLEPERM_BATCHTEMPLATE
                                        System permissions for Batch Template  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | GRANTORDENY | bit |  | Default = 0 | 1 if Granted, 0 if Denied | 
                                                
                                                    | 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 | 
                                            
                                            
                                                
                                                    | SYSTEMROLEID | uniqueidentifier |  | SYSTEMROLE.ID | FK to SYSTEMROLE | 
                                                
                                                    | BATCHTEMPLATEID | uniqueidentifier |  | BATCHTEMPLATE.ID | FK to BATCHTEMPLATE | 
                                                
                                                    | ADDEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | CHANGEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_SYSTEMROLEPERM_BATCHTEMPLATE_BATCHTEMPLATEID | BATCHTEMPLATEID |  |  |  | 
                                                
                                                    | IX_SYSTEMROLEPERM_BATCHTEMPLATE_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_SYSTEMROLEPERM_BATCHTEMPLATE_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | PK_SYSTEMROLEPERM_BATCHTEMPLATE | ID | yes | yes |  | 
                                                
                                                    | UIX_SYSTEMROLEPERM_BATCHTEMPLATE_SYSTEMROLEID_BATCHTEMPLATEID | SYSTEMROLEID, BATCHTEMPLATEID | yes |  |  | 
                                            
                                        
                                        Triggers