Order (v1.0.0)
Order domain entity, encapsulates order information and business rules
Overview
The order entity represents an order in the orders domain. It encapsulates order information and business rules such as a unique identifier. The order is the final step in the ordering process and is associated with the buyer and basket.
Entity Properties
Name | Type | Required | Description |
---|---|---|---|
id | UUID | Required | Unique identifier for the order |
status | string | Required | Status of the order |
note | string | Optional | Note of the order |
buyerId | UUID | Required | Unique identifier of the buyer |
isDeleted | boolean | Required | Whether the order has been deleted |
createdAt | DateTime | Required | Time when the order was created |
lastModifiedAt | DateTime | Required | Time when the order was last modified |
version | int | Required | Version of the record for optimistic concurrency control |
Entity Relationships
- A buyer has one or more orders
- A basket is associated with one order
- An order consists of one or more order items