EVENTCONFLICT
This table stores the event conflicts during scheduling.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
CONFLICTDESCRIPTION |
nvarchar(500) |
|
Default = '' |
The description of the conflict. |
NAME |
nvarchar(100) |
|
Default = '' |
Name of the event |
DESCRIPTION |
nvarchar(255) |
|
Default = '' |
Description of the event |
CAPACITY |
int |
|
Default = 0 |
The capacity for the event. |
STARTTIME |
UDT_HOURMINUTE |
|
Default = '' |
The start time of the event. |
ENDTIME |
UDT_HOURMINUTE |
|
Default = '' |
The end time of the event. |
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. |
SCHEDULEID |
uniqueidentifier |
yes |
|
Uniquely identifies the scheduling run |
STARTDATE |
date |
|
|
The start date of the event. |
ENDDATE |
date |
|
|
The end date of the event. |
STARTDATETIME |
datetime (Computed) |
yes |
dateadd(minute, convert(tinyint, substring(STARTTIME, 3, 2)), dateadd(hour, convert(tinyint, substring(STARTTIME, 1, 2)), convert(datetime, STARTDATE))) |
The start date and time of the conflicting event. |
ENDDATETIME |
datetime (Computed) |
yes |
dateadd(minute, convert(tinyint, substring(ENDTIME, 3, 2)), dateadd(hour, convert(tinyint, substring(ENDTIME, 1, 2)), convert(datetime, ENDDATE))) |
The end date and time of the conflicting event. |
PUBLICDESCRIPTIONTEXT |
nvarchar(max) |
|
Default = '' |
|
PUBLICDESCRIPTIONHTML |
nvarchar(max) |
|
Default = '' |
|
SUPERCEDESPROGRAMPUBLICDESCRIPTION |
bit |
|
Default = 0 |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
PROGRAMID |
uniqueidentifier |
|
PROGRAM.ID
|
FK to PROGRAM |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
SOURCEEVENTID |
uniqueidentifier |
yes |
EVENT.ID
|
|
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_EVENTCONFLICT_DATEADDED |
DATEADDED |
|
|
yes |
IX_EVENTCONFLICT_DATECHANGED |
DATECHANGED |
|
|
|
IX_EVENTCONFLICT_PROGRAMID |
PROGRAMID |
|
|
|
PK_EVENTCONFLICT |
ID |
yes |
yes |
|
Triggers
Referenced by