MKTMARKETINGPLANITEMTASK
Stores tasks required for a particular plan item.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
SUBJECT |
nvarchar(100) |
|
Default = '' |
A short description of the task. |
NOTES |
nvarchar(max) |
|
Default = '' |
|
DUEDATE |
UDT_FUZZYDATE |
|
Default = '00000000' |
The date the task should be completed by. |
DATECOMPLETED |
datetime |
yes |
|
The date on which the task was completed. |
MARKETINGPLANTASKSTATUSCODE |
tinyint |
|
Default = 0 |
The status of the current task |
MARKETINGPLANTASKSTATUS |
nvarchar(9) (Computed) |
yes |
CASE [MARKETINGPLANTASKSTATUSCODE] WHEN 0 THEN N'Active' WHEN 1 THEN N'Completed' END |
Provides a translation for the 'MARKETINGPLANTASKSTATUSCODE' field. |
OWNER |
nvarchar(100) |
|
Default = '' |
The person who will be responsible for this task. This field is used by clients that do not have an Infinity powered CRM system. |
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 |
MARKETINGPLANITEMID |
uniqueidentifier |
yes |
MKTMARKETINGPLANITEM.ID
|
The parent ID for this level; null for the top-most level. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
OWNERID |
uniqueidentifier |
yes |
CONSTITUENT.LOCALID
|
The staff member who will be responsible for this task. This field is used by clients that have an Infinity powered CRM system. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_MKTMARKETINGPLANITEMTASK_DATEADDED |
DATEADDED |
|
|
yes |
IX_MKTMARKETINGPLANITEMTASK_DATECHANGED |
DATECHANGED |
|
|
|
IX_MKTMARKETINGPLANITEMTASK_MARKETINGPLANITEMID |
MARKETINGPLANITEMID |
|
|
|
IX_MKTMARKETINGPLANITEMTASK_OWNERID |
OWNERID |
|
|
|
PK_MKTMARKETINGPLANITEMTASK |
ID |
yes |
yes |
|
Triggers