Skip to content

Chat Domain Model

Private Chat context class diagram

UML diagram image

Details

MessageText

constraints:

  • \(text.length < 4000\).

Chat constraints

  • Chat can't be deleted.
  • PrivateChat can have only two partecipants, a owner and a partecipant.
  • A User can interact with a Chat only if it is a participant.
  • A User can send messages within a Chat only if it is a participant.
  • A User can only delete messages in a Chat if it's the original sender.

Domain Events

  • Chat created: emitted when a chat is registered to the system.
  • Chat Deleted: emitted when a chat is removed from the system.

Last update: February 10, 2022 12:33:31
Created: February 9, 2022 11:57:27
Authors: ThomasAngeliniUnibo (52.54%), ldeluigi (18.64%), Simone (18.64%), ldeluigi (10.17%)