Represents a user within the application. This interface extends the MongoEntity base entity.

User

interface User {
    _id?: string;
    activated: boolean;
    corpsId: string;
    createdAt: DateTime;
    deleted: boolean;
    email: string;
    password: string;
    passwordResetToken?: string;
    passwordResetValidUntil?: DateTime;
    salt?: string;
    token: string;
    updatedAt: DateTime;
}

Hierarchy (View Summary)

Properties

_id?: string
activated: boolean

Whether the user has been activated.

corpsId: string

The ID of the Corps the user belongs to.

createdAt: DateTime
deleted: boolean
email: string

The email address of the user.

password: string

The password of the user.

passwordResetToken?: string

The token used to reset the password.

passwordResetValidUntil?: DateTime

The date until which the password reset token is valid.

salt?: string

The salt used to hash the password.

token: string

The current auth token of the user (null in db).

updatedAt: DateTime