BATCHUSERSETTINGS

Stores user settings for batch.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SETTINGS xml yes
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
BATCHTYPECATALOGID uniqueidentifier BATCHTYPECATALOG.ID FK to BATCHTYPECATALOG
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_BATCHUSERSETTINGS_DATEADDED DATEADDED yes
IX_BATCHUSERSETTINGS_DATECHANGED DATECHANGED
PK_BATCHUSERSETTINGS ID yes yes
UIX_BATCHUSERSETTINGS_BATCHTYPECATALOGID_APPUSERID BATCHTYPECATALOGID, APPUSERID yes

Triggers

Trigger Name Description
TR_BATCHUSERSETTINGS_AUDIT_UPDATE
TR_BATCHUSERSETTINGS_AUDIT_DELETE