MKTMARKETINGPLANINCOMEFORECASTPREFERENCES

Stores preferences for viewing the plan income forecast report.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
MONTH1RETURN money Default = 50.0 Percentage of Expected revenue returning during the first month.
MONTH2RETURN money Default = 35.0 Percentage of Expected revenue returning during the first month.
MONTH3RETURN money Default = 10.0 Percentage of Expected revenue returning during the first month.
MONTH4RETURN money Default = 5.0 Percentage of Expected revenue returning during the first month.
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
APPUSERID uniqueidentifier APPUSER.ID FK to APPUSER
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_MKTMARKETINGPLANINCOMEFORECASTPREFERENCES_DATEADDED DATEADDED yes
IX_MKTMARKETINGPLANINCOMEFORECASTPREFERENCES_DATECHANGED DATECHANGED
PK_MKTMARKETINGPLANINCOMEFORECASTPREFERENCES ID yes yes
UC_MKTMARKETINGPLANINCOMEFORECASTPREFERENCES_APPUSERID APPUSERID yes

Triggers

Trigger Name Description
TR_MKTMARKETINGPLANINCOMEFORECASTPREFERENCES_AUDIT_UPDATE
TR_MKTMARKETINGPLANINCOMEFORECASTPREFERENCES_AUDIT_DELETE