MercurModules.PRODUCT_EDIT ("product_edit"), owns two data models: ProductChange and ProductChangeAction. Both are defined in packages/core/src/modules/product-edit/models. Every model also gets created_at, updated_at, and deleted_at from Medusa.
ProductChange
A single reviewable edit to one product. Tableproduct_change, id prefix prodch.
Relations:
actions: has manyProductChangeAction. The model cascades deletes to its actions
status, on product_id, and on (product_id, status), all excluding soft-deleted rows.
ProductChangeAction
A single typed operation inside a change. Tableproduct_change_action, id prefix prodchact.
Relations:
product_change: belongs toProductChange, nullable
product_change_id, product_id, (reference, reference_id), and ordering, all excluding soft-deleted rows.
ProductChangeStatus
The values ofProductChange.status, exported from @mercurjs/types:
ProductChangeActionType
The values ofProductChangeAction.action, exported from @mercurjs/types:
The
details shape for each type is listed in Change actions. The matching DTOs are ProductChangeDTO and ProductChangeActionDTO, and the create inputs are CreateProductChangeDTO and CreateProductChangeActionDTO, all from @mercurjs/types.