THEME

A Theme represents a layout, a template, and one or more style sheets.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(256) Default = ''
DESCRIPTION nvarchar(2048) Default = ''
LAYOUTID int Default = 0
TEMPLATEID int Default = 0
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.
DEFAULTSTYLING int Default = 0
IMAGEID int Default = 0
DEFAULTSTYLINGSEQUENCE int Default = 0 The sequence in the style sheet order that the default stylesheet will be applied if it is enabled.
LAYOUTSTYLINGSEQUENCE int Default = 0 The sequence in the style sheet order that the layout stylesheet will be applied.

Foreign Keys

Foreign Key Field Type Null Notes Description
CLIENTSITESID int yes ClientSites.ID FK to CLIENTSITES
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_THEME_DATEADDED DATEADDED yes
IX_THEME_DATECHANGED DATECHANGED
PK_THEME ID yes yes

Triggers

Trigger Name Description
TR_THEME_AUDIT_UPDATE
TR_THEME_AUDIT_DELETE

Referenced by

Referenced by Field
THEMELAYOUT THEMEID
THEMESTYLESHEET THEMEID