OrderGroup, registered on the Seller module. There is no separate order group module: resolve it with MercurModules.SELLER. The model is defined in packages/core/src/modules/seller/models/order-group.ts, and its record type is OrderGroupDTO from @mercurjs/types.
OrderGroup
The parent record over the child orders created from one completed cart. Tableorder_group, id prefix og.
The computed fields are filled by the Seller module’s
OrderGroupRepository on every read. See Computed totals.
Indexes
The model declares three partial indexes, each limited to rows wheredeleted_at IS NULL:
Relations
OrderGroup has no relations inside the Seller module. It reaches other modules through module links:
See Links for the definitions and
query.graph examples.
Mutation types
@mercurjs/types exports the input shapes for the generated create and update methods:
Checkout creates every group through
createOrderGroupStep. Mercur never updates a group after that.