MERCHANDISEDEPARTMENTCATEGORY (4.0SP17)

A category within a department to which specific merchandise items belong.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

MERCHANDISEDEPARTMENTID

uniqueidentifier

false

The department to which the category belongs.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

The category name.

DESCRIPTION

nvarchar(255)

false

''

The category description.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ISACTIVE

bit

false

1

Determines whether the category is active.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_MERCHANDISEDEPARTMENTCATEGORY_DATEADDED

DATEADDED

False

False

True

IX_MERCHANDISEDEPARTMENTCATEGORY_DATECHANGED

DATECHANGED

False

False

False

PK_MERCHANDISEDEPARTMENTCATEGORY

ID

True

True

False

UIX_MERCHANDISEDEPARTMENTCATEGORY_MERCHANDISEDEPARTMENTID_NAME

MERCHANDISEDEPARTMENTID

NAME

True

False

False

Triggers
Trigger Name Description

TR_MERCHANDISEDEPARTMENTCATEGORY_AUDIT_UPDATE

TR_MERCHANDISEDEPARTMENTCATEGORY_AUDIT_DELETE

Referenced by
Referenced by Field

MERCHANDISEPRODUCT

MERCHANDISEDEPARTMENTCATEGORYID

SALESORDERITEMMERCHANDISE

MERCHANDISEDEPARTMENTCATEGORYID