Skip to content

User Subdomain Model

User context

UML diagram image

Details

Name and Surname

constraints:

  • \(value\) must have almost 4 letters.
  • \(value\) can't have more than 100 letters.

Username

constraints:

  • \(value\) must have almost 4 letters.
  • \(value\) matches ^[A-Za-z][A-Za-z0-9]*(_[A-Za-z0-9]{2,}){0,3}$

Auth context

UML diagram image

Details

Username

constraints:

  • \(value\) must have almost 4 letters.
  • \(value\) matches ^[A-Za-z][A-Za-z0-9]*(_[A-Za-z0-9]{2,}){0,3}$

Email

constraints:

  • \(value\) must respect regex for email.

Password Hash

constraints:

  • \(password\) must not be empty.
  • \(password\) must have almost 8 characters.

Domain Events

  • Account Registered: emitted when an account is registered to the system.
  • Account Unregistered: emitted when an account is removed from the system.

Last update: February 10, 2022 12:33:31
Created: February 9, 2022 11:57:27
Authors: ThomasAngeliniUnibo (71.11%), ldeluigi (21.11%), Simone (6.67%), ldeluigi (1.11%)