| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
CHANNELCODE |
tinyint | Default = 0 | Communication channel code | |
CHANNEL |
nvarchar(8) (Computed) | ![]() |
CASE [CHANNELCODE] WHEN 0 THEN N'Others' WHEN 1 THEN N'Email' WHEN 2 THEN N'Facebook' WHEN 3 THEN N'Twitter' END | Provides a translation for the 'CHANNELCODE' 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. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
REVENUEID |
uniqueidentifier | FINANCIALTRANSACTION.ID | Revenue ID | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_FAFEVENTCOMMUNICATIONCHANNELREVENUE_DATEADDED |
DATEADDED | ![]() |
||
IX_FAFEVENTCOMMUNICATIONCHANNELREVENUE_DATECHANGED |
DATECHANGED | |||
IX_FAFEVENTCOMMUNICATIONCHANNELREVENUE_REVENUEID |
REVENUEID | |||
PK_FAFEVENTCOMMUNICATIONCHANNELREVENUE |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_FAFEVENTCOMMUNICATIONCHANNELREVENUE_AUDIT_UPDATE |
|
TR_FAFEVENTCOMMUNICATIONCHANNELREVENUE_AUDIT_DELETE |

ID
CHANNELCODE
CHANNEL
REVENUEID
IX_FAFEVENTCOMMUNICATIONCHANNELREVENUE_DATEADDED
IX_FAFEVENTCOMMUNICATIONCHANNELREVENUE_DATECHANGED