UserProfile

data class UserProfile(val username: String, val email: Email, val role: UserRole)

Represents the profile information of a user in the domain model.

Constructors

Link copied to clipboard
constructor(username: String, email: Email, role: UserRole)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The email address of the user. Used for communication and account recovery.

Link copied to clipboard

The role of the user, represented as a UserRole. Defines the user's permissions and access level.

Link copied to clipboard

The username of the user. This is a unique identifier for the user within the system.

Functions

Link copied to clipboard