BBWORKFLOWINBOXASSIGNMENT

Defines what users or roles are assigned to a Workflow Inbox

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
ASSIGNMENTTYPECODE tinyint Default = 0 Indicates if this is an assignment to a user or a role
ASSIGNMENTTYPE nvarchar(4) (Computed) yes CASE [ASSIGNMENTTYPECODE] WHEN 0 THEN N'Role' WHEN 1 THEN N'User' END Provides a translation for the 'ASSIGNMENTTYPECODE' field.
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
BBWORKFLOWINBOXID uniqueidentifier BBWORKFLOWINBOX.ID FK to BBWORKFLOWINBOX
APPUSERID uniqueidentifier yes APPUSER.ID FK to APPUSER
SYSTEMROLEID uniqueidentifier yes SYSTEMROLE.ID FK to SYSTEMROLE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_BBWORKFLOWINBOXASSIGNMENT_APPUSERID APPUSERID
IX_BBWORKFLOWINBOXASSIGNMENT_DATEADDED DATEADDED yes
IX_BBWORKFLOWINBOXASSIGNMENT_DATECHANGED DATECHANGED
IX_BBWORKFLOWINBOXASSIGNMENT_SYSTEMROLEID SYSTEMROLEID
PK_BBWORKFLOWINBOXASSIGNMENT ID yes yes
UIX_BBWORKFLOWINBOXASSIGNMENT_BBWORKFLOWINBOXID_APPUSERID_SYSTEMROLEID BBWORKFLOWINBOXID, APPUSERID, SYSTEMROLEID yes

Triggers

Trigger Name Description
TR_BBWORKFLOWINBOXASSIGNMENT_AUDIT_UPDATE
TR_BBWORKFLOWINBOXASSIGNMENT_AUDIT_DELETE