WORKSTATION

Describes a computer on the network.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = ''
DESCRIPTION nvarchar(255) Default = ''
MACHINENAME nvarchar(255) Default = '' The unique machine name on the network
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.
CASHDRAWEROPENCOMMAND nvarchar(50) Default = ''

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CASHDRAWERPRINTERID uniqueidentifier yes WORKSTATIONPRINTER.ID FK to WORKSTATIONPRINTER

Indexes

Index Name Fields Unique Primary Clustered
IX_WORKSTATION_DATEADDED DATEADDED yes
IX_WORKSTATION_DATECHANGED DATECHANGED
PK_WORKSTATION ID yes yes
UC_WORKSTATION_MACHINENAME MACHINENAME yes
UC_WORKSTATION_NAME NAME yes

Triggers

Trigger Name Description
TR_WORKSTATION_AUDIT_UPDATE
TR_WORKSTATION_AUDIT_DELETE

Referenced by

Referenced by Field
DOCUMENTPRINTINGHISTORY WORKSTATIONID
TICKETPRINTINFO WORKSTATIONID
WORKSTATIONCASHDRAWEROPEN WORKSTATIONID
WORKSTATIONCASHDRAWERPAYMENTMETHOD WORKSTATIONID
WORKSTATIONPRINTER WORKSTATIONID