KPIDASHBOARDPAGETABKPIINSTANCE

Contains a list of KPI instances for a tab on a user's KPI dashboard.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SEQUENCE 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.

Foreign Keys

Foreign Key Field Type Null Notes Description
KPIDASHBOARDPAGETABID uniqueidentifier yes KPIDASHBOARDPAGETAB.ID Tab to which this KPI instance belongs.
KPIINSTANCEID uniqueidentifier KPIINSTANCE.ID KPI instance to display on the tab.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_KPIDASHBOARDPAGETABKPIINSTANCE_DATEADDED DATEADDED yes
IX_KPIDASHBOARDPAGETABKPIINSTANCE_DATECHANGED DATECHANGED
IX_KPIDASHBOARDPAGETABKPIINSTANCE_KPIDASHBOARDPAGETABID KPIDASHBOARDPAGETABID
PK_KPIDASHBOARDPAGETABKPIINSTANCE ID yes yes

Triggers

Trigger Name Description
TR_KPIDASHBOARDPAGETABKPIINSTANCE_AUDIT_UPDATE
TR_KPIDASHBOARDPAGETABKPIINSTANCE_AUDIT_DELETE