User

@Serializable
data class User(val id: UUID, val name: String, val createdAt: Long)

Data class representing a user.

Constructors

Link copied to clipboard
constructor(request: CreateUserRequest)

Secondary constructor to create a User instance from a CreateUserRequest.

constructor(id: UUID, name: String, createdAt: Long)

Properties

Link copied to clipboard

The timestamp when the user was created.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val id: UUID

The unique identifier of the user.

Link copied to clipboard

The name of the user.