Alokai

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

NameRequiredTypeDescription
date_createdRequiredstringDate the product review was created.
date_modifiedRequiredstringDate the product review was modified.
date_reviewedRequiredstringDate the product was reviewed.
emailRequiredstringThe email of the reviewer. Must be a valid email, or an empty string.
idRequirednumberThe unique numeric ID of the product review; increments sequentially.
nameRequiredstringThe name of the reviewer.
product_idRequirednumberThe unique numeric identifier for the product with which the review is associated.
ratingRequiredReviewRatingThe rating of the product review. Must be one of 0, 1, 2, 3, 4, 5.
statusRequiredReviewStatusThe status of the product review. Must be one of approved, disapproved or pending.
textOptionalstringThe text for the product review.
titleRequiredstringThe title for the product review.

Referenced Types

On this page