RESEARCHGROUPLASTVISITED

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEACCESSED datetime
DATEADDED datetime Default = getdate()
DATECHANGED datetime Default = getdate()
TS timestamp
TSLONG bigint (Computed) yes CONVERT(bigint, TS)

Foreign Keys

Foreign Key Field Type Null Notes Description
APPUSERID uniqueidentifier APPUSER.ID
RESEARCHGROUPID uniqueidentifier RESEARCHGROUP.ID
ADDEDBYID uniqueidentifier CHANGEAGENT.ID
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_RESEARCHGROUPLASTVISITED_DATEADDED DATEADDED yes
IX_RESEARCHGROUPLASTVISITED_DATECHANGED DATECHANGED
PK_RESEARCHGROUPLASTVISITED ID yes yes
UIX_RESEARCHGROUPLASTVISITED_RESEARCHGROUPID_APPUSERID_DATEACCESSED RESEARCHGROUPID, APPUSERID, DATEACCESSED yes

Triggers

Trigger Name Description
TR_RESEARCHGROUPLASTVISITED_AUDIT_UPDATE
TR_RESEARCHGROUPLASTVISITED_AUDIT_DELETE