COMMUNICATIONEXCLUSIONCOMMUNICATIONTYPES

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
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.
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
COMMUNICATIONEXCLUSIONID uniqueidentifier yes COMMUNICATIONEXCLUSIONS.ID FK to COMMUNICATIONEXCLUSIONS
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_COMMUNICATIONEXCLUSIONCOMMUNICATIONTYPES_COMMUNICATIONEXCLUSIONID COMMUNICATIONEXCLUSIONID
IX_COMMUNICATIONEXCLUSIONCOMMUNICATIONTYPES_DATEADDED DATEADDED yes
IX_COMMUNICATIONEXCLUSIONCOMMUNICATIONTYPES_DATECHANGED DATECHANGED
PK_COMMUNICATIONEXCLUSIONCOMMUNICATIONTYPES ID yes yes

Triggers

Trigger Name Description
TR_COMMUNICATIONEXCLUSIONCOMMUNICATIONTYPES_AUDIT_UPDATE
TR_COMMUNICATIONEXCLUSIONCOMMUNICATIONTYPES_AUDIT_DELETE