MERCHANDISEPRODUCT
A retail item for which instances can be sold.
Primary Key
| Primary Key | Field Type |
|---|---|
| ID | uniqueidentifier |
Fields
| 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) | yes | 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 | yes | A photo or emblem for this constituent. | |
| PICTURETHUMBNAIL | varbinary | yes | ||
| ISDISCOUNTABLE | bit | Default = 1 | The discountable status of the product. |
Foreign Keys
| 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 | yes | MERCHANDISEDEPARTMENTCATEGORY.ID | The category to which the product belongs. |
| ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
| CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
| TAXID | uniqueidentifier | yes | TAX.ID |
Indexes
| Index Name | Fields | Unique | Primary | Clustered |
|---|---|---|---|---|
| IX_MERCHANDISEPRODUCT_DATEADDED | DATEADDED | yes | ||
| IX_MERCHANDISEPRODUCT_DATECHANGED | DATECHANGED | |||
| PK_MERCHANDISEPRODUCT | ID | yes | yes |
Triggers
| Trigger Name | Description |
|---|---|
| TR_MERCHANDISEPRODUCT_AUDIT_UPDATE | |
| TR_MERCHANDISEPRODUCT_AUDIT_DELETE |
Referenced by
| Referenced by | Field |
|---|---|
| BATCHMERCHANDISEINVENTORY | MERCHANDISEPRODUCTID |
| DISCOUNTGROUPDETAILMERCHANDISEITEM | MERCHANDISEITEMID |
| MERCHANDISEPRODUCTATTACHMENT | MERCHANDISEPRODUCTID |
| MERCHANDISEPRODUCTINSTANCE | MERCHANDISEPRODUCTID |
| MERCHANDISEPRODUCTLABLEPRINTHISTORY | MERCHANDISEPRODUCTID |
| MERCHANDISEPRODUCTMEDIALINK | MERCHANDISEPRODUCTID |
| MERCHANDISEPRODUCTNOTE | MERCHANDISEPRODUCTID |
| MERCHANDISEPRODUCTOPTION | MERCHANDISEPRODUCTID |
| MERCHANDISEPRODUCTSALESMETHOD | MERCHANDISEPRODUCTID |