WORKSTATION (3.0)

Describes a computer on the network.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CASHDRAWERPRINTERID

uniqueidentifier

true

FK to WORKSTATIONPRINTER

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

DESCRIPTION

nvarchar(255)

false

''

MACHINENAME

nvarchar(255)

false

''

The unique machine name on the network

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

CASHDRAWEROPENCOMMAND

nvarchar(50)

false

''

Indexes
Index Name Field(s) Unique Primary Clustered

IX_WORKSTATION_DATEADDED

DATEADDED

False

False

True

IX_WORKSTATION_DATECHANGED

DATECHANGED

False

False

False

PK_WORKSTATION

ID

True

True

False

UC_WORKSTATION_MACHINENAME

MACHINENAME

True

False

False

UC_WORKSTATION_NAME

NAME

True

False

False

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