MKTMEMBERSHIPMAILINGTEMPLATEFILTERSELECTION

Stores information pertaining to the selections in a membership renewal 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 membership renewal 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
MEMBERSHIPMAILINGTEMPLATEID uniqueidentifier MKTMEMBERSHIPMAILINGTEMPLATE.ID The membership renewal 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_MKTMEMBERSHIPMAILINGTEMPLATEFILTERSELECTION_DATEADDED DATEADDED yes
IX_MKTMEMBERSHIPMAILINGTEMPLATEFILTERSELECTION_DATECHANGED DATECHANGED
IX_MKTMEMBERSHIPMAILINGTEMPLATEFILTERSELECTION_SELECTIONID SELECTIONID
PK_MKTMEMBERSHIPMAILINGTEMPLATEFILTERSELECTION ID yes yes
UIX_MKTMEMBERSHIPMAILINGTEMPLATEFILTERSELECTION_MEMBERSHIPMAILINGTEMPLATEID_SELECTIONID MEMBERSHIPMAILINGTEMPLATEID, SELECTIONID yes

Triggers

Trigger Name Description
TR_MKTMEMBERSHIPMAILINGTEMPLATEFILTERSELECTION_AUDIT_UPDATE
TR_MKTMEMBERSHIPMAILINGTEMPLATEFILTERSELECTION_AUDIT_DELETE