TICKETPRINTINFO
Holds information about an individual copy of a ticket
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| 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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
| REPRINTJOB |
uniqueidentifier |
yes |
|
Used to identify tickets selected for reprinting |
| LOOKUPID |
nvarchar(100) (Computed) |
yes |
(CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN '8-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END) |
Unique identifier that supports user defined values as well as system generated values. |
| PRINTDATEWITHTIMEOFFSET |
datetimeoffset |
yes |
|
Holds date and time ticket was printed |
| ONLINEPRINT |
bit |
|
Default = 0 |
|
Foreign Keys
| 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 |
yes |
WORKSTATION.ID
|
Workstation the ticket was printed from |
| TICKETREPRINTREASONCODEID |
uniqueidentifier |
yes |
TICKETREPRINTREASONCODE.ID
|
Reason for reprinting the ticket, if any |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_TICKETPRINTINFO_DATEADDED |
DATEADDED |
|
|
|
| IX_TICKETPRINTINFO_DATECHANGED |
DATECHANGED |
|
|
|
| IX_TICKETPRINTINFO_SEQUENCEID |
SEQUENCEID |
|
|
yes |
| IX_TICKETPRINTINFO_TICKETID_REPRINTJOB |
TICKETID, REPRINTJOB |
|
|
|
| PK_TICKETPRINTINFO |
ID |
yes |
yes |
|
| UC_TICKETPRINTINFO_LOOKUPID |
LOOKUPID |
yes |
|
|
Triggers
Referenced by