Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 TYPEGUID uniqueidentifier   Guid of the type
 CHANNELCODE tinyint   Default = 0 Communication channel code
 TYPECODE tinyint   Default = 0 Tracking type code
 TYPE nvarchar(12) (Computed) CASE [TYPECODE] WHEN 0 THEN N'Registration' WHEN 1 THEN N'Revenue' END Provides a translation for the 'TYPECODE' 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 CHANNEL nvarchar(12) (Computed) CASE [CHANNELCODE] WHEN 0 THEN N'Others' WHEN 1 THEN N'Email' WHEN 2 THEN N'Facebook' WHEN 3 THEN N'Twitter' WHEN 4 THEN N'Social media' END Provides a translation for the 'CHANNELCODE' field.

Foreign Key Field Type Null Notes Description
 EMAILJOBID int EmailJob.ID FK to EMAILJOB
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_FAFEVENTCOMMUNICATIONCHANNEL_DATEADDED DATEADDED    
 IX_FAFEVENTCOMMUNICATIONCHANNEL_DATECHANGED DATECHANGED      
 IX_FAFEVENTCOMMUNICATIONCHANNEL_EMAILJOBID EMAILJOBID      
 IX_FAFEVENTCOMMUNICATIONCHANNEL_TYPEGUID_TYPECODE TYPEGUID, TYPECODE      
 PK_FAFEVENTCOMMUNICATIONCHANNEL ID  

Trigger Name Description
 TR_FAFEVENTCOMMUNICATIONCHANNEL_AUDIT_UPDATE
 TR_FAFEVENTCOMMUNICATIONCHANNEL_AUDIT_DELETE