BANKACCOUNTADJUSTMENTCATEGORY
                                        Stores bank account adjustment category specific fields.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | CATEGORY | nvarchar(60) |  | Default = '' | Category description | 
                                                
                                                    | AMOUNT | decimal(19, 4) |  | Default = 0 | Default amount | 
                                                
                                                    | DEFAULTREFERENCE | nvarchar(100) |  | Default = '' | Default reference | 
                                                
                                                    | POSTSTATUSCODE | tinyint |  | Default = 1 | Post status | 
                                                
                                                    | POSTDATECODE | tinyint |  | Default = 1 | Post date | 
                                                
                                                    | 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. | 
                                                
                                                    | ADJUSTMENTTYPECODE | tinyint |  | Default = 1 | Type of adjustment | 
                                                
                                                    | ADJUSTMENTTYPE | nvarchar(12) (Computed) | yes | CASE [ADJUSTMENTTYPECODE] WHEN 16 THEN N'Deposit' WHEN 17 THEN N'Payment' WHEN 32 THEN N'Transfer out' WHEN 33 THEN N'Transfer in' END | Provides a translation for the 'ADJUSTMENTTYPECODE' field. | 
                                                
                                                    | POSTDATE | nvarchar(15) (Computed) | yes | CASE [POSTDATECODE] WHEN 0 THEN N'' WHEN 1 THEN N'Today' WHEN 2 THEN N'Adjustment date' END | Provides a translation for the 'POSTDATECODE' field. | 
                                                
                                                    | POSTSTATUS | nvarchar(11) (Computed) | yes | CASE [POSTSTATUSCODE] WHEN 1 THEN N'Not posted' WHEN 2 THEN N'Do not post' END | Provides a translation for the 'POSTSTATUSCODE' field. | 
                                            
                                        
                                        Foreign Keys
                                        
                                            
                                                
                                                    | Foreign Key | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | ADDEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | CHANGEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | TRANSFERBANKACCOUNTID | uniqueidentifier | yes | BANKACCOUNT.ID | Transfer account | 
                                                
                                                    | BANKACCOUNTID | uniqueidentifier |  | BANKACCOUNT.ID | Bank account ID | 
                                                
                                                    | ADJUSTMENTFUZZYDATEID | uniqueidentifier | yes | FUZZYDATE.ID | Adjustment category fuzzy date | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_BANKACCOUNTADJUSTMENTCATEGORY_BANKACCOUNTID_TRANSFERBANKACCOUNTID | BANKACCOUNTID, TRANSFERBANKACCOUNTID |  |  |  | 
                                                
                                                    | IX_BANKACCOUNTADJUSTMENTCATEGORY_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_BANKACCOUNTADJUSTMENTCATEGORY_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | PK_BANKACCOUNTADJUSTMENTCATEGORY | ID | yes | yes |  | 
                                                
                                                    | UIX_BANKACCOUNTADJUSTMENTCATEGORY_BANKACCOUNTID_CATEGORY | BANKACCOUNTID, CATEGORY | yes |  |  | 
                                            
                                        
                                        Triggers
                                        
                                        Referenced by