WEBDASHBOARDCONTEXTRECORDHISTORY

Contains a list of recently viewed records for the web dashboard.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
RECORDID nvarchar(1000) Default = '' ID of the context record.
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
RECORDTYPEID uniqueidentifier RECORDTYPE.ID Record type of the context record.
APPUSERID uniqueidentifier APPUSER.ID Application user who viewed the record.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_WEBDASHBOARDCONTEXTRECORDHISTORY_DATEADDED DATEADDED yes
IX_WEBDASHBOARDCONTEXTRECORDHISTORY_DATECHANGED DATECHANGED
PK_WEBDASHBOARDCONTEXTRECORDHISTORY ID yes yes

Triggers

Trigger Name Description
TR_WEBDASHBOARDCONTEXTRECORDHISTORY_AUDIT_UPDATE
TR_WEBDASHBOARDCONTEXTRECORDHISTORY_AUDIT_DELETE