Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 FOLDERNAME nvarchar(100)   Default = 'New Folder'
 HIERARCHYPATH hierarchyid   To maintain folder hierarchy
 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
 USERID uniqueidentifier   APPUSER.ID FK to APPUSER
 USERFOLDERCATEGORYCODEID uniqueidentifier USERFOLDERCATEGORYCODE.ID FK to USERFOLDERCATEGORYCODE
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_USERFOLDER_DATEADDED DATEADDED    
 IX_USERFOLDER_DATECHANGED DATECHANGED      
 IX_USERFOLDER_FOLDERNAME FOLDERNAME      
 PK_USERFOLDER ID  
 UC_USERFOLDER_HIERARCHYPATH HIERARCHYPATH    

Trigger Name Description
 TR_USERFOLDER_AUDIT_UPDATE
 TR_USERFOLDER_AUDIT_DELETE

Entity-Relationship diagram of this table