| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | 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. |
ONHANDQUANTITY |
int | Default = 0 | The on hand quantity for the product instance. | |
ISACTIVE |
bit | Default = 1 | The active status of the product. | |
PICTURE |
varbinary | ![]() |
A photo or emblem for this constituent. | |
PICTURETHUMBNAIL |
varbinary | ![]() |
||
ISDISCOUNTABLE |
bit | Default = 1 | The discountable status of the product. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
ID |
uniqueidentifier | PRODUCT.ID | Primary Key. | |
MERCHANDISEDEPARTMENTID |
uniqueidentifier | MERCHANDISEDEPARTMENT.ID | The department to which the product belongs. | |
MERCHANDISEDEPARTMENTCATEGORYID |
uniqueidentifier | ![]() |
MERCHANDISEDEPARTMENTCATEGORY.ID | The category to which the product belongs. |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_MERCHANDISEPRODUCT_DATEADDED |
DATEADDED | ![]() |
||
IX_MERCHANDISEPRODUCT_DATECHANGED |
DATECHANGED | |||
PK_MERCHANDISEPRODUCT |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_MERCHANDISEPRODUCT_AUDIT_UPDATE |
|
TR_MERCHANDISEPRODUCT_AUDIT_DELETE |
| Referenced by | Field |
|---|---|
DISCOUNTGROUPDETAILMERCHANDISEITEM |
MERCHANDISEITEMID |
MERCHANDISEPRODUCTATTACHMENT |
MERCHANDISEPRODUCTID |
MERCHANDISEPRODUCTINSTANCE |
MERCHANDISEPRODUCTID |
MERCHANDISEPRODUCTLABLEPRINTHISTORY |
MERCHANDISEPRODUCTID |
MERCHANDISEPRODUCTMEDIALINK |
MERCHANDISEPRODUCTID |
MERCHANDISEPRODUCTNOTE |
MERCHANDISEPRODUCTID |
MERCHANDISEPRODUCTOPTION |
MERCHANDISEPRODUCTID |
MERCHANDISEPRODUCTSALESMETHOD |
MERCHANDISEPRODUCTID |

ID
DATEADDED
TSLONG
ID
IX_MERCHANDISEPRODUCT_DATEADDED
IX_MERCHANDISEPRODUCT_DATECHANGED