MKTSPONSORSHIPMAILINGTEMPLATEFILTERSELECTION

Stores information pertaining to the selections in a sponsorship effort template's universe and exclusion filters.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
FILTERTYPECODE tinyint Default = 0 The type of sponsorship effort template selection filter.
FILTERTYPE nvarchar(19) (Computed) yes CASE [FILTERTYPECODE] WHEN 1 THEN N'Universe selection' WHEN 2 THEN N'Exclusion selection' END Provides a translation for the 'FILTERTYPECODE' 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.

Foreign Keys

Foreign Key Field Type Null Notes Description
SPONSORSHIPMAILINGTEMPLATEID uniqueidentifier MKTSPONSORSHIPMAILINGTEMPLATE.ID The sponsorship effort template the filter belongs to.
SELECTIONID uniqueidentifier yes IDSETREGISTER.ID The selection used as the filter.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_MKTSPONSORSHIPMAILINGTEMPLATEFILTERSELECTION_DATEADDED DATEADDED yes
IX_MKTSPONSORSHIPMAILINGTEMPLATEFILTERSELECTION_DATECHANGED DATECHANGED
IX_MKTSPONSORSHIPMAILINGTEMPLATEFILTERSELECTION_SELECTIONID SELECTIONID
PK_MKTSPONSORSHIPMAILINGTEMPLATEFILTERSELECTION ID yes yes
UIX_MKTSPONSORSHIPMAILINGTEMPLATEFILTERSELECTION_SPONSORSHIPMAILINGTEMPLATEID_SELECTIONID SPONSORSHIPMAILINGTEMPLATEID, SELECTIONID yes

Triggers

Trigger Name Description
TR_MKTSPONSORSHIPMAILINGTEMPLATEFILTERSELECTION_AUDIT_UPDATE
TR_MKTSPONSORSHIPMAILINGTEMPLATEFILTERSELECTION_AUDIT_DELETE