BATCHDIRECTMARKETINGEFFORTSEGMENT

Stores segment information for Direct Marketing Effort batches.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = '' The name of the segment.
DESCRIPTION nvarchar(255) Default = '' A description about the segment.
CODE nvarchar(10) Default = '' A unique code that identifies the segment.
SEGMENTTYPECODE tinyint Default = 1 The type of the segment.
SEGMENTTYPE nvarchar(11) (Computed) yes CASE [SEGMENTTYPECODE] WHEN 1 THEN N'Constituent' WHEN 2 THEN N'List' END Provides a translation for the 'SEGMENTTYPECODE' field.
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.
SEGMENTSITEISNULL bit Default = 0 True if the segment site selected is a null site. False if a segment site was not chosen or was not included in the template.

Foreign Keys

Foreign Key Field Type Null Notes Description
MKTSEGMENTID uniqueidentifier yes MKTSEGMENT.ID The existing segment record.
CODEPARTDEFINITIONVALUESID uniqueidentifier yes MKTSOURCECODEPARTDEFINITIONVALUES.ID The source code part definition format value.
MKTSEGMENTCATEGORYCODEID uniqueidentifier yes MKTSEGMENTCATEGORYCODE.ID A category for grouping segments together.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
SITEID uniqueidentifier yes SITE.ID The site to which this segment belongs.

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_CODEPARTDEFINITIONVALUESID CODEPARTDEFINITIONVALUESID
IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_DATEADDED DATEADDED yes
IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_DATECHANGED DATECHANGED
IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_MKTSEGMENTCATEGORYCODEID MKTSEGMENTCATEGORYCODEID
IX_BATCHDIRECTMARKETINGEFFORTSEGMENT_MKTSEGMENTID MKTSEGMENTID
PK_BATCHDIRECTMARKETINGEFFORTSEGMENT ID yes yes

Triggers

Trigger Name Description
TR_BATCHDIRECTMARKETINGEFFORTSEGMENT_AUDIT_UPDATE
TR_BATCHDIRECTMARKETINGEFFORTSEGMENT_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHDIRECTMARKETINGEFFORT BATCHDIRECTMARKETINGEFFORTSEGMENTID