Primary Key Field Type
 ID uniqueidentifier

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) 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

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

Index Name Field(s) Unique Primary Clustered
 IX_BBWORKFLOWINBOXASSIGNMENT_APPUSERID APPUSERID      
 IX_BBWORKFLOWINBOXASSIGNMENT_DATEADDED DATEADDED    
 IX_BBWORKFLOWINBOXASSIGNMENT_DATECHANGED DATECHANGED      
 IX_BBWORKFLOWINBOXASSIGNMENT_SYSTEMROLEID SYSTEMROLEID      
 PK_BBWORKFLOWINBOXASSIGNMENT ID  
 UIX_BBWORKFLOWINBOXASSIGNMENT_BBWORKFLOWINBOXID_APPUSERID_SYSTEMROLEID BBWORKFLOWINBOXID, APPUSERID, SYSTEMROLEID    

Trigger Name Description
 TR_BBWORKFLOWINBOXASSIGNMENT_AUDIT_UPDATE
 TR_BBWORKFLOWINBOXASSIGNMENT_AUDIT_DELETE

Entity-Relationship diagram of this table