EVENTWIDGET

Widgets available in the Event for Admin

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
ROLE nvarchar(11) (Computed) yes 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 Keys

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.

Indexes

Index Name Fields Unique Primary Clustered
IX_EVENTWIDGET_DATEADDED DATEADDED yes
IX_EVENTWIDGET_DATECHANGED DATECHANGED
PK_EVENTWIDGET ID yes yes
UIX_EVENTWIDGET_WIDGETID_EVENTID_ROLECODE WIDGETID, EVENTID, ROLECODE yes

Triggers

Trigger Name Description
TR_EVENTWIDGET_AUDIT_UPDATE
TR_EVENTWIDGET_AUDIT_DELETE

Referenced by

Referenced by Field
WIDGETEXTENSION EVENTWIDGETID