TEAMWIDGET

Widgets available for Team

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
ISACTIVE bit Default = 0 Team Captain can Enable or Disable 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.

Foreign Keys

Foreign Key Field Type Null Notes Description
TEAMFUNDRAISINGTEAMID uniqueidentifier TEAMFUNDRAISINGTEAM.ID FK to TEAMFUNDRAISINGTEAM
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_TEAMWIDGET_DATEADDED DATEADDED yes
IX_TEAMWIDGET_DATECHANGED DATECHANGED
PK_TEAMWIDGET ID yes yes
UIX_TEAMWIDGET_WIDGETID_TEAMFUNDRAISINGTEAMID WIDGETID, TEAMFUNDRAISINGTEAMID yes

Triggers

Trigger Name Description
TR_TEAMWIDGET_AUDIT_UPDATE
TR_TEAMWIDGET_AUDIT_DELETE

Referenced by

Referenced by Field
WIDGETEXTENSION TEAMWIDGETID