OrderItem (v1.0.0)
OrderItem domain entity, encapsulates order item information and business rules
Overview
The order item entity represents an order item in the orders domain. It encapsulates order item information and business rules such as a unique identifier. The order item is the final step in the ordering process and is associated with the order and book.
Entity Properties
Name | Type | Required | Description |
---|---|---|---|
id | UUID | Required | Unique identifier for the order item |
bookId | UUID | Required | Unique identifier of the book |
quantity | int | Required | Quantity of the order item |
price | decimal | Required | Price of the order item |
orderId | UUID | Required | Unique identifier of the order |
Entity Relationships
- An order consists of one or more order items
- A book is associated with one order item