Relations Overview
| Relationship | Type | Description |
|---|---|---|
| Review → Product (Product Module) | Read-only - has one | A review can reference a product |
| Review → Seller (Seller Module) | Read-only - has one | A review can reference a seller |
| Review → Customer (Customer Module) | Read-only - has one | A review is created by a customer |
Data Models
Review
This documentation provides a reference to the Review data model. It belongs to the Review Module.| Field | Type | Description |
|---|---|---|
id | PrimaryKeyModifier<IdProperty> | The ID of the review. |
reference | EnumProperty<["product", "seller"]> | The type of entity being reviewed. Can be product or seller. |
rating | NumberProperty | The rating value of the review (1-5). |
customer_note | TextProperty | The customer’s written review comment. |
seller_note | TextProperty | The seller’s response to the review. |