FAFEVENTCOMMUNICATIONCHANNEL
Store Communication Channel tracking data
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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) |
yes |
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
CHANNEL |
nvarchar(12) (Computed) |
yes |
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 Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
EMAILJOBID |
int |
yes |
EmailJob.ID
|
FK to EMAILJOB |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_FAFEVENTCOMMUNICATIONCHANNEL_DATEADDED |
DATEADDED |
|
|
yes |
IX_FAFEVENTCOMMUNICATIONCHANNEL_DATECHANGED |
DATECHANGED |
|
|
|
IX_FAFEVENTCOMMUNICATIONCHANNEL_EMAILJOBID |
EMAILJOBID |
|
|
|
IX_FAFEVENTCOMMUNICATIONCHANNEL_TYPEGUID_TYPECODE |
TYPEGUID, TYPECODE |
|
|
|
PK_FAFEVENTCOMMUNICATIONCHANNEL |
ID |
yes |
yes |
|
Triggers