Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 PAYMENTTYPECODE tinyint   Default = 0 The type of payments used in a sales type.
 PAYMENTTYPE nvarchar(11) (Computed) 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 WORKSTATIONID uniqueidentifier   WORKSTATION.ID FK to WORKSTATION
 OTHERPAYMENTMETHODCODEID uniqueidentifier OTHERPAYMENTMETHODCODE.ID The other payment method specified.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_WORKSTATIONCASHDRAWERPAYMENTMETHOD_DATEADDED DATEADDED    
 IX_WORKSTATIONCASHDRAWERPAYMENTMETHOD_DATECHANGED DATECHANGED      
 PK_WORKSTATIONCASHDRAWERPAYMENTMETHOD ID  
 UIX_WORKSTATIONCASHDRAWERPAYMENTMETHOD_PAYMENTTYPECODE_WORKSTATIONID_OTHERPAYMENTMETHODCODEID PAYMENTTYPECODE, WORKSTATIONID, OTHERPAYMENTMETHODCODEID    

Trigger Name Description
 TR_WORKSTATIONCASHDRAWERPAYMENTMETHOD_AUDIT_UPDATE
 TR_WORKSTATIONCASHDRAWERPAYMENTMETHOD_AUDIT_DELETE

Entity-Relationship diagram of this table