MKTCOMMUNICATIONTEMPLATEDEFAULTFILTERSELECTION

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
FILTERTYPECODE tinyint Default = 0
FILTERTYPE nvarchar(9) (Computed) yes CASE [FILTERTYPECODE] WHEN 1 THEN N'Universe' WHEN 2 THEN N'Exclusion' END
LOCKED bit Default = 0
DATEADDED datetime Default = getdate()
DATECHANGED datetime Default = getdate()
TS timestamp
TSLONG bigint (Computed) yes CONVERT(bigint, TS)

Foreign Keys

Foreign Key Field Type Null Notes Description
COMMUNICATIONTEMPLATEID uniqueidentifier MKTCOMMUNICATIONTEMPLATE.ID
SELECTIONID uniqueidentifier yes IDSETREGISTER.ID
ADDEDBYID uniqueidentifier CHANGEAGENT.ID
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_MKTCOMMUNICATIONTEMPLATEDEFAULTFILTERSELECTION_DATEADDED DATEADDED yes
IX_MKTCOMMUNICATIONTEMPLATEDEFAULTFILTERSELECTION_DATECHANGED DATECHANGED
IX_MKTCOMMUNICATIONTEMPLATEDEFAULTFILTERSELECTION_SELECTIONID SELECTIONID
PK_MKTCOMMUNICATIONTEMPLATEDEFAULTFILTERSELECTION ID yes yes
UIX_MKTCOMMUNICATIONTEMPLATEDEFAULTFILTERSELECTION_COMMUNICATIONTEMPLATEID_SELECTIONID COMMUNICATIONTEMPLATEID, SELECTIONID yes

Triggers

Trigger Name Description
TR_MKTCOMMUNICATIONTEMPLATEDEFAULTFILTERSELECTION_AUDIT_UPDATE
TR_MKTCOMMUNICATIONTEMPLATEDEFAULTFILTERSELECTION_AUDIT_DELETE