Review. It’s defined in packages/core/src/modules/review/models/review.ts and stored in the review table. Resolve the module with MercurModules.REVIEW.
Review
A customer’s rating of one product or one seller. Tablereview, id prefix rev.
The model has no column for its target, order, or customer. Those live in module links, and
reference tells you whether to follow product or seller.
Indexes
Two indexes speed up the lists the APIs run:Relations
The model defines no relations of its own. Through links, a review exposes thesequery.graph fields:
Types
@mercurjs/types exports ReviewDTO, ReviewReference ("product" | "seller"), and ReviewStatus ("pending" | "published" | "rejected") for this model.