CORPORATESTRUCTUREFILTER

This table contains filter options for the Corporate Structure tree for each application user.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEFILTERCODE tinyint 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.
CURRENCYCODE tinyint Default = 0
INCLUDEHISTORICAL bit Default = 0

Foreign Keys

Foreign Key Field Type Null Notes Description
APPUSERID uniqueidentifier APPUSER.ID FK to APPUSER
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_CORPORATESTRUCTUREFILTER_DATEADDED DATEADDED yes
IX_CORPORATESTRUCTUREFILTER_DATECHANGED DATECHANGED
PK_CORPORATESTRUCTUREFILTER ID yes yes
UIX_CORPORATESTRUCTUREFILTER_APPUSERID APPUSERID yes

Triggers

Trigger Name Description
TR_CORPORATESTRUCTUREFILTER_AUDIT_UPDATE
TR_CORPORATESTRUCTUREFILTER_AUDIT_DELETE