Status
A review’s state is held in thestatus field of the Review model. A review
moves through three statuses:
A review is created as
pending. Moderation moves it to published or
rejected by updating the status field. See
Moderate a review.
Store responses
A store can attach a single public response to any of its reviews. The response lives in theseller_note field and is added through a dedicated respond flow,
which refuses to overwrite an existing response.
Responding is separate from moderation. A store adds its
seller_note, while
the status transition (published / rejected) stays an operator decision.Aggregate ratings
The module service computes average ratings on demand rather than storing a denormalized column.getAvgRating returns the average for a single product or
seller, and getProductsWithRating / getSellersWithRating return records with
their average rating joined in for list views.