Skip to content

@machb/user-entities v0.0.2-SNAPSHOT


@machb/user-entities / User

Class: User

Defined in: User.ts:19

Represents the base entity for a user in the system.

The User class provides fundamental attributes commonly associated with a user, such as email, password, and personal information. It is designed as a minimal structure to serve as the foundation for more complex user-related entities, such as Profile.

Usage

const user = new User();
user.email = "[email protected]";
user.password = "securePassword123";
user.firstName = "Jane";
user.lastName = "Doe";
user.country = "US";

Extended by

Constructors

Constructor

new User(): User

Returns

User

Properties

country?

optional country: string

Defined in: User.ts:51

The user's country of residence.


email?

optional email: string

Defined in: User.ts:24

The user's email address. Typically used as the primary credential for authentication.


firstName?

optional firstName: string

Defined in: User.ts:41

The user's first name.


id?

optional id: string

Defined in: User.ts:36

Unique identifier for the user. Often used internally for database or system references.


lastName?

optional lastName: string

Defined in: User.ts:46

The user's last name.


password?

optional password: string

Defined in: User.ts:30

The user's password. Should be stored securely and never be directly exposed.

https://www.free-Counters.org