ProductReview
Product review model.
interface ProductReview {
date_created: string;
date_modified: string;
date_reviewed: string;
email: string;
id: number;
name: string;
product_id: number;
rating: ReviewRating;
status: ReviewStatus;
text?: string;
title: string;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
date_created | Required | string | Date the product review was created. |
date_modified | Required | string | Date the product review was modified. |
date_reviewed | Required | string | Date the product was reviewed. |
email | Required | string | The email of the reviewer. Must be a valid email, or an empty string. |
id | Required | number | The unique numeric ID of the product review; increments sequentially. |
name | Required | string | The name of the reviewer. |
product_id | Required | number | The unique numeric identifier for the product with which the review is associated. |
rating | Required | ReviewRating | The rating of the product review. Must be one of 0, 1, 2, 3, 4, 5. |
status | Required | ReviewStatus | The status of the product review. Must be one of approved, disapproved or pending. |
text | Optional | string | The text for the product review. |
title | Required | string | The title for the product review. |