Feedback (v1.0.0)
Feedback domain entity, encapsulates feedback information and business rules
Overview
The feedback entity represents a feedback in the catalog. It encapsulates feedback information and business rules such as a unique identifier, a book identifier, a user identifier, a rating, and a comment. The feedback entity also enforces rules such as requiring a non-empty rating and ensuring that the feedback is not deleted.
Entity Properties
Name | Type | Required | Description |
---|---|---|---|
id | UUID | Required | Unique identifier for the feedback |
bookId | UUID | Required | Unique identifier for the book |
firstName | string | Required | A first name of the user |
lastName | string | Required | A last name of the user |
rating | int | Required | A rating of the book |
comment | string | Optional | A comment of the book |
Entity Relationships
- A feedback is associated with one book