Review (v1.0.0)

Represents customer reviews and ratings for products.

Overview

The Review entity captures customer feedback and ratings for products. It supports verified purchase validation, content moderation, community voting, and merchant responses to build trust and provide valuable product insights.

Entity Properties

NameTypeRequiredDescription
reviewIdUUIDRequiredUnique identifier for the review
productIdUUIDRequiredProduct being reviewed
customerIdUUIDRequiredCustomer who wrote the review
orderIdUUIDOptionalOrder associated with this review (for verified purchases)
ratingintegerRequiredRating given by customer (1-5 stars)
titlestringOptionalReview title or headline
contentstringRequiredReview content and comments
isVerifiedPurchasebooleanRequiredWhether this review is from a verified purchase
isRecommendedbooleanOptionalWhether customer recommends this product
helpfulVotesintegerRequiredNumber of helpful votes received
totalVotesintegerRequiredTotal number of votes received
statusstringRequiredCurrent review status
moderationNotesstringOptionalInternal moderation notes
imagesarrayOptionalURLs of images uploaded with the review
prosarrayOptionalList of positive aspects mentioned
consarrayOptionalList of negative aspects mentioned
merchantResponseobjectOptionalResponse from merchant to this review
createdAtDateTimeRequiredDate and time when the review was created
updatedAtDateTimeOptionalDate and time when the review was last updated
moderatedAtDateTimeOptionalDate and time when the review was moderated

Relationships

  • Product: Each review belongs to one Product (identified by productId).
  • Customer: Each review is written by one Customer (identified by customerId).
  • Order: Each review can be linked to one Order for purchase verification (identified by orderId).

Review Lifecycle

submitted → pending → approved → published
              ↓         ↓
           rejected   flagged

Examples

  • Review #1: 5-star review for iPhone 15 Pro, verified purchase, “Excellent camera quality!”
  • Review #2: 3-star review for Running Shoes, helpful votes: 15/20, includes photos
  • Review #3: 1-star review flagged for inappropriate content, pending moderation

Business Rules

  • Reviews can only be submitted by customers who purchased the product
  • Rating must be between 1-5 stars
  • Verified purchase reviews are given higher weight in calculations
  • Inappropriate content is flagged and requires moderation
  • Customers can only review the same product once per purchase
  • Helpful votes help surface most valuable reviews
  • Merchant responses are limited to one per review
  • Reviews older than 2 years may have reduced weight in calculations