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

NameTypeRequiredDescription
idUUIDRequiredUnique identifier for the order
statusstringRequiredStatus of the order
notestringOptionalNote of the order
buyerIdUUIDRequiredUnique identifier of the buyer
isDeletedbooleanRequiredWhether the order has been deleted
createdAtDateTimeRequiredTime when the order was created
lastModifiedAtDateTimeRequiredTime when the order was last modified
versionintRequiredVersion 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