Primary Key | Field Type |
---|---|
![]() |
uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
tinyint | Default = 0 | The type of payments used in a sales type. | |
![]() |
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. |
![]() |
datetime | Default = getdate() | Indicates the date this record was added. | |
![]() |
datetime | Default = getdate() | Indicates the date this record was last changed. | |
![]() |
timestamp | Timestamp. | ||
![]() |
bigint (Computed) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
uniqueidentifier | WORKSTATION.ID | FK to WORKSTATION | |
![]() |
uniqueidentifier | ![]() |
OTHERPAYMENTMETHODCODE.ID | The other payment method specified. |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
![]() |
DATEADDED | ![]() |
||
![]() |
DATECHANGED | |||
![]() |
ID | ![]() |
![]() |
|
![]() |
PAYMENTTYPECODE, WORKSTATIONID, OTHERPAYMENTMETHODCODEID | ![]() |
Trigger Name | Description |
---|---|
![]() |
|
![]() |