TICKETPRINTINFO (4.0SP14)

Holds information about an individual copy of a ticket

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

TICKETID

uniqueidentifier

false

The ticket that was printed

APPUSERID

uniqueidentifier

false

Application user that printed the ticket

WORKSTATIONID

uniqueidentifier

true

Workstation the ticket was printed from

TICKETREPRINTREASONCODEID

uniqueidentifier

true

Reason for reprinting the ticket, if any

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

CUSTOMIDENTIFIER

nvarchar(100)

false

''

User-definable custom identifier.

SEQUENCEID

int

false

Identity column used to increment the default lookupid.

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.

REPRINTJOB

uniqueidentifier

true

Used to identify tickets selected for reprinting

LOOKUPID

nvarchar(100) (Computed)

true

Unique identifer that supports user defined values as well as system generated values.

PRINTDATEWITHTIMEOFFSET

datetimeoffset

true

Holds date and time ticket was printed

ONLINEPRINT

bit

false

0

Indexes
Index Name Field(s) Unique Primary Clustered

IX_TICKETPRINTINFO_DATEADDED

DATEADDED

False

False

False

IX_TICKETPRINTINFO_DATECHANGED

DATECHANGED

False

False

False

IX_TICKETPRINTINFO_SEQUENCEID

SEQUENCEID

False

False

True

IX_TICKETPRINTINFO_TICKETID_REPRINTJOB

TICKETID

REPRINTJOB

False

False

False

PK_TICKETPRINTINFO

ID

True

True

False

UC_TICKETPRINTINFO_LOOKUPID

LOOKUPID

True

False

False

Triggers
Trigger Name Description

TR_TICKETPRINTINFO_AUDIT_UPDATE

TR_TICKETPRINTINFO_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHTICKETPRINTJOBTICKETLINK

ID