SOCIALNETWORKSTATUSUPDATELOG
Log each status update to social networking sites
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
CONSTITUENTID |
uniqueidentifier |
yes |
|
The image owner constituent id. |
EVENTID |
uniqueidentifier |
yes |
|
|
MESSAGE |
nvarchar(4000) |
|
Default = '' |
|
SOCIALNETWORKCODE |
tinyint |
|
Default = 0 |
type that references the social network that was updated |
SOCIALNETWORK |
nvarchar(8) (Computed) |
yes |
CASE [SOCIALNETWORKCODE] WHEN 0 THEN N'None' WHEN 1 THEN N'Facebook' WHEN 2 THEN N'Twitter' END |
Provides a translation for the 'SOCIALNETWORKCODE' 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 |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_SOCIALNETWORKSTATUSUPDATELOG_DATEADDED |
DATEADDED |
|
|
yes |
IX_SOCIALNETWORKSTATUSUPDATELOG_DATECHANGED |
DATECHANGED |
|
|
|
PK_SOCIALNETWORKSTATUSUPDATELOG |
ID |
yes |
yes |
|
Triggers