WORKSTATIONCASHDRAWERPAYMENTMETHOD
                                        Holds payment methods which cause the cash drawer on a workstation to open.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | Field Type | 
                                            
                                            
                                                
                                                    | ID | uniqueidentifier | 
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | Field Type | Null | Notes | Description | 
                                            
                                            
                                                
                                                    | PAYMENTTYPECODE | tinyint |  | Default = 0 | The type of payments used in a sales type. | 
                                                
                                                    | PAYMENTTYPE | nvarchar(11) (Computed) | yes | CASE [PAYMENTTYPECODE] WHEN 0 THEN N'Cash' WHEN 1 THEN N'Check' WHEN 2 THEN N'Credit card' WHEN 10 THEN N'Other' END | Provides a translation for the 'PAYMENTTYPECODE' field. | 
                                                
                                                    | 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 | 
                                            
                                            
                                                
                                                    | WORKSTATIONID | uniqueidentifier |  | WORKSTATION.ID | FK to WORKSTATION | 
                                                
                                                    | OTHERPAYMENTMETHODCODEID | uniqueidentifier | yes | OTHERPAYMENTMETHODCODE.ID | The other payment method specified. | 
                                                
                                                    | ADDEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                                
                                                    | CHANGEDBYID | uniqueidentifier |  | CHANGEAGENT.ID | FK to CHANGEAGENT. | 
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | Fields | Unique | Primary | Clustered | 
                                            
                                            
                                                
                                                    | IX_WORKSTATIONCASHDRAWERPAYMENTMETHOD_DATEADDED | DATEADDED |  |  | yes | 
                                                
                                                    | IX_WORKSTATIONCASHDRAWERPAYMENTMETHOD_DATECHANGED | DATECHANGED |  |  |  | 
                                                
                                                    | PK_WORKSTATIONCASHDRAWERPAYMENTMETHOD | ID | yes | yes |  | 
                                                
                                                    | UIX_WORKSTATIONCASHDRAWERPAYMENTMETHOD_PAYMENTTYPECODE_WORKSTATIONID_OTHERPAYMENTMETHODCODEID | PAYMENTTYPECODE, WORKSTATIONID, OTHERPAYMENTMETHODCODEID | yes |  |  | 
                                            
                                        
                                        Triggers