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

NameTypeRequiredDescription
idUUIDRequiredUnique identifier for the feedback
bookIdUUIDRequiredUnique identifier for the book
firstNamestringRequiredA first name of the user
lastNamestringRequiredA last name of the user
ratingintRequiredA rating of the book
commentstringOptionalA comment of the book

Entity Relationships

  • A feedback is associated with one book