Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 WIDGETID int   FK to WIDGETGALLERY
 DISPLAYTEXT nvarchar(4000)   Default = '' Display Text
 ROLECODE tinyint   Default = 0 Role Type
 ISACTIVE bit   Default = 1 Indicates whether this is active or not
 ALLOWEDIT bit   Default = 0 Allow participant to Edit the widget
 ALLOWMOVE bit   Default = 0 Allow Participant to Move the widget
 ALLOWREMOVE bit   Default = 0 Allow Participant to Add/Remove the widget
 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.
 ROLE nvarchar(11) (Computed) CASE [ROLECODE] WHEN 0 THEN N'Participant' WHEN 1 THEN N'Team' WHEN 2 THEN N'Company' WHEN 3 THEN N'Household' END Provides a translation for the 'ROLECODE' field.

Foreign Key Field Type Null Notes Description
 EVENTID uniqueidentifier   EVENT.ID FK to EVENT
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_EVENTWIDGET_DATEADDED DATEADDED    
 IX_EVENTWIDGET_DATECHANGED DATECHANGED      
 PK_EVENTWIDGET ID  
 UIX_EVENTWIDGET_WIDGETID_EVENTID_ROLECODE WIDGETID, EVENTID, ROLECODE    

Trigger Name Description
 TR_EVENTWIDGET_AUDIT_UPDATE
 TR_EVENTWIDGET_AUDIT_DELETE

Referenced by Field
 WIDGETEXTENSION EVENTWIDGETID

Entity-Relationship diagram of this table