Conversation (v1.0.0)

Conversation domain entity, encapsulates conversation information and business rules

Overview

The Conversation entity represents a conversation in the chat service. It encapsulates the information and business rules related to a conversation, such as its unique identifier, name, user ownership, creation date, last modified date, and version for optimistic concurrency control.

Entity Properties

NameTypeRequiredDescription
idUUIDRequiredUnique identifier for the conversation
namestringRequiredA name of the conversation
userIdUUIDRequiredUnique identifier for the user who owns the conversation
createdAtDateTimeRequiredThe date and time the conversation was created
lastModifiedAtDateTimeOptionalThe date and time the conversation was updated
versionUUIDRequiredVersion of the record for optimistic concurrency control

Entity Relationships

  • A conversation is owned by one user.
  • A conversation can have multiple messages.