| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
CUSTOMIDENTIFIER |
nvarchar(100) | Default = '' | User-definable custom identifier. | |
SEQUENCEID |
int | Identity column used to increment the default lookupid. | ||
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. |
REPRINTJOB |
uniqueidentifier | ![]() |
Used to identify tickets selected for reprinting | |
PRINTDATEWITHTIMEOFFSET |
datetimeoffset | ![]() |
Holds date and time ticket was printed | |
LOOKUPID |
nvarchar(100) (Computed) | ![]() |
(CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN '8-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END) | Unique identifer that supports user defined values as well as system generated values. |
ONLINEPRINT |
bit | Default = 0 |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
TICKETID |
uniqueidentifier | TICKET.ID | The ticket that was printed | |
APPUSERID |
uniqueidentifier | APPUSER.ID | Application user that printed the ticket | |
WORKSTATIONID |
uniqueidentifier | ![]() |
WORKSTATION.ID | Workstation the ticket was printed from |
TICKETREPRINTREASONCODEID |
uniqueidentifier | ![]() |
TICKETREPRINTREASONCODE.ID | Reason for reprinting the ticket, if any |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_TICKETPRINTINFO_DATEADDED |
DATEADDED | ![]() |
||
IX_TICKETPRINTINFO_DATECHANGED |
DATECHANGED | |||
IX_TICKETPRINTINFO_TICKETID_REPRINTJOB |
TICKETID, REPRINTJOB | |||
PK_TICKETPRINTINFO |
ID | ![]() |
![]() |
|
UC_TICKETPRINTINFO_LOOKUPID |
LOOKUPID | ![]() |
| Trigger Name | Description |
|---|---|
TR_TICKETPRINTINFO_AUDIT_UPDATE |
|
TR_TICKETPRINTINFO_AUDIT_DELETE |
| Referenced by | Field |
|---|---|
BATCHTICKETPRINTJOBTICKETLINK |
ID |

ID
CUSTOMIDENTIFIER
TSLONG
TICKETID
IX_TICKETPRINTINFO_DATEADDED
IX_TICKETPRINTINFO_DATECHANGED