COMMUNICATIONLETTERACTIVITYEXCLUSIONCOMMUNICATIONTYPES

Describes the communication types to be used when defining 'recent' communications for communication exclusions.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
COMMUNICATIONTYPECODE tinyint Default = 0 0=Appeal communication, 1=Event invitation, 2=Membership renewal, 3=Pledge reminder, 4=Sponsorship effort, 5=Marketing effort
COMMUNICATIONTYPE nvarchar(20) (Computed) yes CASE [COMMUNICATIONTYPECODE] WHEN 0 THEN N'Appeal communication' WHEN 1 THEN N'Event invitation' WHEN 2 THEN N'Membership renewal' WHEN 3 THEN N'Pledge reminder' WHEN 4 THEN N'Sponsorship effort' WHEN 5 THEN N'Marketing effort' END Provides a translation for the 'COMMUNICATIONTYPECODE' 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
COMMUNICATIONLETTERACTIVITYEXCLUSIONID uniqueidentifier yes COMMUNICATIONLETTERACTIVITYEXCLUSIONS.ID FK to COMMUNICATIONLETTERACTIVITYEXCLUSIONS
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_COMMUNICATIONLETTERACTIVITYEXCLUSIONCOMMUNICATIONTYPES_COMMUNICATIONLETTERACTIVITYEXCLUSIONID COMMUNICATIONLETTERACTIVITYEXCLUSIONID
IX_COMMUNICATIONLETTERACTIVITYEXCLUSIONCOMMUNICATIONTYPES_DATEADDED DATEADDED yes
IX_COMMUNICATIONLETTERACTIVITYEXCLUSIONCOMMUNICATIONTYPES_DATECHANGED DATECHANGED
PK_COMMUNICATIONLETTERACTIVITYEXCLUSIONCOMMUNICATIONTYPES ID yes yes

Triggers

Trigger Name Description
TR_COMMUNICATIONLETTERACTIVITYEXCLUSIONCOMMUNICATIONTYPES_AUDIT_UPDATE
TR_COMMUNICATIONLETTERACTIVITYEXCLUSIONCOMMUNICATIONTYPES_AUDIT_DELETE