MKTACKNOWLEDGEMENTMAILINGTEMPLATEAPPEAL

Stores appeals associated with a marketing acknowledgement template.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
APPEALSYSTEMID nvarchar(36) Default = '' The existing appeal system ID from the source system, if one was chosen, that will be used for activating the gifts in the record source.
APPEALID nvarchar(100) Default = '' The user-defined ID of a new appeal to create in the source system that will be used for activating the gifts in the record source.
APPEALDESCRIPTION nvarchar(100) Default = '' The description of a new appeal to create in the source system that will be used for activating the gifts in the record source.
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
ACKNOWLEDGEMENTTEMPLATEID uniqueidentifier MKTACKNOWLEDGEMENTMAILINGTEMPLATE.ID The template these KPIs will be created for.
RECORDSOURCEID uniqueidentifier MKTRECORDSOURCE.ID The ID of the record source for the appeal.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_MKTACKNOWLEDGEMENTMAILINGTEMPLATEAPPEAL_ACKNOWLEDGEMENTTEMPLATEID_RECORDSOURCEID ACKNOWLEDGEMENTTEMPLATEID, RECORDSOURCEID
IX_MKTACKNOWLEDGEMENTMAILINGTEMPLATEAPPEAL_DATEADDED DATEADDED yes
IX_MKTACKNOWLEDGEMENTMAILINGTEMPLATEAPPEAL_DATECHANGED DATECHANGED
IX_MKTACKNOWLEDGEMENTMAILINGTEMPLATEAPPEAL_RECORDSOURCEID RECORDSOURCEID
PK_MKTACKNOWLEDGEMENTMAILINGTEMPLATEAPPEAL ID yes yes

Triggers

Trigger Name Description
TR_MKTACKNOWLEDGEMENTMAILINGTEMPLATEAPPEAL_AUDIT_UPDATE
TR_MKTACKNOWLEDGEMENTMAILINGTEMPLATEAPPEAL_AUDIT_DELETE