create

Creates a new User instance.

Return

A new User instance with the specified ID and profile.

Parameters

id

The unique identifier for the user. If the ID is empty, a new UUID will be generated.

profile

The profile information of the user. Defaults to an empty profile if not provided.