BATCHDIRECTMARKETINGEFFORTPACKAGE (4.0SP20)

Stores package information for Direct Marketing Effort batches.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

MKTPACKAGEID

uniqueidentifier

true

The existing package record.

CODEPARTDEFINITIONVALUESID

uniqueidentifier

true

The source code part definition format value.

CHANNELCODEPARTDEFINITIONVALUESID

uniqueidentifier

true

The channel source code part definition format value.

MKTPACKAGECATEGORYCODEID

uniqueidentifier

true

A category for grouping packages together.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with the package.

SITEID

uniqueidentifier

true

The site to which this package belongs.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

The name of the package.

DESCRIPTION

nvarchar(255)

false

''

A description about the package.

CODE

nvarchar(10)

false

''

A unique code that identifies the package.

CHANNELCODE

nvarchar(10)

false

''

A code that identifies the channel of the package.

PACKAGETYPECODE

tinyint

false

0

The type of the package.

PACKAGETYPE

nvarchar(5) (Computed)

true

Provides a translation for the 'PACKAGETYPECODE' field.

COST

money

false

0

The base cost of the package.

COSTDISTRIBUTIONMETHODCODE

tinyint

false

0

The method to be used to apply the package's base cost to a marketing effort.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

COSTDISTRIBUTIONMETHOD

nvarchar(20) (Computed)

true

Provides a translation for the 'COSTDISTRIBUTIONMETHODCODE' field.

PACKAGESITEISNULL

bit

false

0

True if the package site selected is a null site. False if a package site was not chosen or was not included in the template.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHDIRECTMARKETINGEFFORTPACKAGE_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_BATCHDIRECTMARKETINGEFFORTPACKAGE_CHANNELCODEPARTDEFINITIONVALUESID

CHANNELCODEPARTDEFINITIONVALUESID

False

False

False

IX_BATCHDIRECTMARKETINGEFFORTPACKAGE_CODEPARTDEFINITIONVALUESID

CODEPARTDEFINITIONVALUESID

False

False

False

IX_BATCHDIRECTMARKETINGEFFORTPACKAGE_DATEADDED

DATEADDED

False

False

True

IX_BATCHDIRECTMARKETINGEFFORTPACKAGE_DATECHANGED

DATECHANGED

False

False

False

IX_BATCHDIRECTMARKETINGEFFORTPACKAGE_MKTPACKAGECATEGORYCODEID

MKTPACKAGECATEGORYCODEID

False

False

False

IX_BATCHDIRECTMARKETINGEFFORTPACKAGE_MKTPACKAGEID

MKTPACKAGEID

False

False

False

PK_BATCHDIRECTMARKETINGEFFORTPACKAGE

ID

True

True

False

Triggers
Trigger Name Description

TR_BATCHDIRECTMARKETINGEFFORTPACKAGE_AUDIT_UPDATE

TR_BATCHDIRECTMARKETINGEFFORTPACKAGE_AUDIT_DELETE

TR_BATCHDIRECTMARKETINGEFFORTPACKAGE_INSERTUPDATE_CURRENCY

Referenced by
Referenced by Field

BATCHDIRECTMARKETINGEFFORT

BATCHDIRECTMARKETINGEFFORTPACKAGEID