EVENTPLANTASK
Contains information pertaining to event plan template tasks.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) |
|
Default = '' |
|
NUMBEROFDAYS |
int |
|
Default = 0 |
|
OCCURRENCECODE |
tinyint |
|
Default = 0 |
0=Before, 1=After |
OCCURRENCE |
nvarchar(6) (Computed) |
yes |
CASE [OCCURRENCECODE] WHEN 0 THEN N'Before' WHEN 1 THEN N'After' END |
Provides a translation for the 'OCCURRENCECODE' field. |
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 |
EVENTPLANID |
uniqueidentifier |
|
EVENTPLAN.ID
|
FK to EVENTPLAN |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_EVENTPLANTASK_DATEADDED |
DATEADDED |
|
|
yes |
IX_EVENTPLANTASK_DATECHANGED |
DATECHANGED |
|
|
|
IX_EVENTPLANTASK_EVENTPLANID |
EVENTPLANID |
|
|
|
PK_EVENTPLANTASK |
ID |
yes |
yes |
|
Triggers