Skip to main content
The Product Edit domain is owned by the Product Edit module (MercurModules.PRODUCT_EDIT). This reference lists its data models and their fields.

ProductChange

Table product_change, id prefix prodch. A single reviewable edit to one product. Relations: actions (one-to-many ProductChangeAction, cascade-deleted with the change).
The status enum has four values: pending, confirmed, declined, and canceled. A revision request is recorded as a CHANGE_REQUESTED audit action rather than a distinct status.

ProductChangeAction

Table product_change_action, id prefix prodchact. A single typed operation inside a change.

Enums

ProductChangeStatus: pending, confirmed, declined, canceled. ProductChangeActionType: UPDATE, STATUS_CHANGE, VARIANT_ADD, VARIANT_UPDATE, VARIANT_REMOVE, ATTRIBUTE_ADD, ATTRIBUTE_UPDATE, ATTRIBUTE_REMOVE, PRODUCT_ADD, PRODUCT_DELETE, CHANGE_REQUESTED. Both enums are exported from @mercurjs/types.