APPEALMAILING

Stores information pertaining to appeal mailings.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
LABELFILENAME nvarchar(255) Default = '' The original file name for the label template.
LABELFILE varbinary yes The actual label template file.
CREATEOUTPUTIDSET bit Default = 0 Designates whether or not an ID set should be created as a result of the mailing activation process.
OUTPUTIDSETNAME nvarchar(100) Default = '' The name of the output ID set to be created by the mailing activation process.
OVERWRITEOUTPUTIDSET bit Default = 0 Designates whether or not to overwrite the output ID set if one with the same name already exists.
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.
NAME nvarchar(100) (Computed) yes dbo.[UFN_MKTSEGMENTATION_GETNAME]([ID]) The name of the mailing.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier MKTSEGMENTATION.ID Primary Key.
APPEALID uniqueidentifier APPEAL.LOCALID The appeal the mailing is for.
MKTSEGMENTATIONSEGMENTID uniqueidentifier yes MKTSEGMENTATIONSEGMENT.ID The automatically generated mailing segment for the mailing.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_APPEALMAILING_APPEALID APPEALID
IX_APPEALMAILING_DATEADDED DATEADDED yes
IX_APPEALMAILING_DATECHANGED DATECHANGED
PK_APPEALMAILING ID yes yes
UIX_APPEALMAILING_MKTSEGMENTATIONSEGMENTID MKTSEGMENTATIONSEGMENTID yes

Triggers

Trigger Name Description
TR_APPEALMAILING_AUDIT_UPDATE
TR_APPEALMAILING_AUDIT_DELETE

Referenced by

Referenced by Field
APPEALMAILINGSETUP ID