MERCHANDISEPRODUCTOPTIONVALUE

Holds the available values for a merchandise item option

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(50) Default = '' The name of the option group.
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
MERCHANDISEPRODUCTOPTIONID uniqueidentifier yes MERCHANDISEPRODUCTOPTION.ID Foreign key to the merchandise product option table.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_MERCHANDISEPRODUCTOPTIONVALUE_DATEADDED DATEADDED yes
IX_MERCHANDISEPRODUCTOPTIONVALUE_DATECHANGED DATECHANGED
PK_MERCHANDISEPRODUCTOPTIONVALUE ID yes yes
UIX_MERCHANDISEPRODUCTOPTIONVALUE_MERCHANDISEPRODUCTOPTIONID_NAME MERCHANDISEPRODUCTOPTIONID, NAME yes

Triggers

Trigger Name Description
TR_MERCHANDISEPRODUCTOPTIONVALUE_AUDIT_UPDATE
TR_MERCHANDISEPRODUCTOPTIONVALUE_AUDIT_DELETE

Referenced by

Referenced by Field
MERCHANDISEPRODUCTINSTANCEOPTIONVALUE MERCHANDISEPRODUCTOPTIONVALUEID
SALESORDERITEMMERCHANDISE MERCHANDISEPRODUCTINSTANCEOPTIONVALUE1ID
SALESORDERITEMMERCHANDISE MERCHANDISEPRODUCTINSTANCEOPTIONVALUE2ID
SALESORDERITEMMERCHANDISE MERCHANDISEPRODUCTINSTANCEOPTIONVALUE3ID