MKTMARKETINGPLANITEMTEMPLATEITEM

Stores attributes of a marketing plan layout; copied from the Template table when a plan is created.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
CAPTION nvarchar(50) Default = '' A description for the marketing plan template item.
BACKCOLOR int Default = 0
FORECOLOR int Default = 0
CAPTIONCOLOR int Default = 0
LEVEL tinyint Default = 0 Determines relative position of the level
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
MARKETINGPLANID uniqueidentifier MKTMARKETINGPLAN.ID FK to MKTMARKETINGPLAN
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_MKTMARKETINGPLANITEMTEMPLATEITEM_DATEADDED DATEADDED yes
IX_MKTMARKETINGPLANITEMTEMPLATEITEM_DATECHANGED DATECHANGED
IX_MKTMARKETINGPLANITEMTEMPLATEITEM_MARKETINGPLANID MARKETINGPLANID
PK_MKTMARKETINGPLANITEMTEMPLATEITEM ID yes yes

Triggers

Trigger Name Description
TR_MKTMARKETINGPLANITEMTEMPLATEITEM_AUDIT_UPDATE
TR_MKTMARKETINGPLANITEMTEMPLATEITEM_AUDIT_DELETE