Category (v1.0.0)

Category domain entity, encapsulates category information and business rules

Overview

The category entity represents a category in the catalog. It encapsulates category information and business rules such as a unique identifier, a name, and a collection of books categorized under the category. The category entity also enforces rules such as requiring a non-empty name and ensuring that the category is not deleted.

Entity Properties

NameTypeRequiredDescription
idUUIDRequiredUnique identifier for the category
namestringRequiredA name of the category

Entity Relationships

  • A category has multiple books