Overview
The outbox entity represents an outbox in the orders domain. It encapsulates outbox information and business rules such as a unique identifier, the recipient’s name and email, the subject and body of the notification, whether the notification has been sent, and timestamps for when the notification was created and sent. This entity is used by the notification service to send notifications to customers about their order status.
Entity Properties
Name | Type | Required | Description |
---|---|---|---|
id | UUID | Required | Unique identifier for the outbox |
toName | string | Required | Name of the recipient |
toEmail | string | Required | Email of the recipient |
subject | string | Required | Subject of the notification |
body | string | Required | Body of the notification |
isSent | boolean | Required | Whether the notification has been sent |
sentAt | DateTime | Optional | Time when the notification was sent |
createdAt | DateTime | Required | Time when the notification was created |