BATCHEVENTDESIGNATION
Stores batch event designation information
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
SEQUENCE |
int |
|
Default = 0 |
|
DEFAULT |
bit |
|
Default = 0 |
Determines whether the event designation is default or not. |
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. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
BATCHEVENTID |
uniqueidentifier |
|
BATCHEVENT.ID
|
FK to BATCHEVENT |
DESIGNATIONID |
uniqueidentifier |
yes |
DESIGNATION.ID
|
The designation the event is linked to. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_BATCHEVENTDESIGNATION_DATEADDED |
DATEADDED |
|
|
yes |
IX_BATCHEVENTDESIGNATION_DATECHANGED |
DATECHANGED |
|
|
|
IX_BATCHEVENTDESIGNATION_DESIGNATIONID |
DESIGNATIONID |
|
|
|
PK_BATCHEVENTDESIGNATION |
ID |
yes |
yes |
|
Triggers