Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 ISACTIVE bit   Default = 1
 ISAPPROVED bit   Default = 0
 APPROVEDBY nvarchar(100)   Default = '' The name of the person approving the marketing plan.
 DATEAPPROVED datetime
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 SITEID uniqueidentifier SITE.ID The site to which this marketing plan belongs.
 BASECURRENCYID uniqueidentifier CURRENCY.ID The base currency associated with this marketing plan.

Index Name Field(s) Unique Primary Clustered
 IX_MKTMARKETINGPLAN_BASECURRENCYID BASECURRENCYID      
 IX_MKTMARKETINGPLAN_DATEADDED DATEADDED    
 IX_MKTMARKETINGPLAN_DATECHANGED DATECHANGED      
 IX_MKTMARKETINGPLAN_SITEID SITEID      
 PK_MKTMARKETINGPLAN ID  

Trigger Name Description
 TR_MKTMARKETINGPLAN_INSERTUPDATE_CURRENCY
 TR_MKTMARKETINGPLAN_AUDIT_UPDATE
 TR_MKTMARKETINGPLAN_AUDIT_DELETE

Referenced by Field
 MKTMARKETINGPLANBRIEF MARKETINGPLANID
 MKTMARKETINGPLANITEM MARKETINGPLANID
 MKTMARKETINGPLANITEMTEMPLATEITEM MARKETINGPLANID

Entity-Relationship diagram of this table