Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100)   Default = '' The category name.
 DESCRIPTION nvarchar(255)   Default = '' The category description.
 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.
 ISACTIVE bit   Default = 1 Determines whether the category is active.

Foreign Key Field Type Null Notes Description
 MERCHANDISEDEPARTMENTID uniqueidentifier   MERCHANDISEDEPARTMENT.ID The department to which the category belongs.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_MERCHANDISEDEPARTMENTCATEGORY_DATEADDED DATEADDED    
 IX_MERCHANDISEDEPARTMENTCATEGORY_DATECHANGED DATECHANGED      
 PK_MERCHANDISEDEPARTMENTCATEGORY ID  
 UIX_MERCHANDISEDEPARTMENTCATEGORY_MERCHANDISEDEPARTMENTID_NAME MERCHANDISEDEPARTMENTID, NAME    

Trigger Name Description
 TR_MERCHANDISEDEPARTMENTCATEGORY_AUDIT_UPDATE
 TR_MERCHANDISEDEPARTMENTCATEGORY_AUDIT_DELETE

Referenced by Field
 MERCHANDISEPRODUCT MERCHANDISEDEPARTMENTCATEGORYID
 SALESORDERITEMMERCHANDISE MERCHANDISEDEPARTMENTCATEGORYID

Entity-Relationship diagram of this table