Skip to main content

Class: UserMongo

Defined in: src/models/mongo/UserMongo.ts:38

Implementation of the User interface for storage in a MongoDB database. If SQL is desired, please use models.sql.UserSQL instead.

Extends

  • BaseMongoEntity

Implements

Constructors

Constructor

new UserMongo(other?): UserMongo

Defined in: src/models/mongo/UserMongo.ts:51

Parameters

other?

Partial<UserMongo>

Returns

UserMongo

Overrides

BaseMongoEntity.constructor

Properties

_id?

optional _id?: any

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseMongoEntity.d.ts:11

The internal unique identifier used by MongoDB.

Inherited from

BaseMongoEntity._id


dateCreated

dateCreated: Date

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:18

The date and time that the entity was created.

Implementation of

User.dateCreated

Inherited from

BaseMongoEntity.dateCreated


dateModified

dateModified: Date

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:22

The date and time that the entity was last modified.

Implementation of

User.dateModified

Inherited from

BaseMongoEntity.dateModified


roles

roles: string[] = []

Defined in: src/models/mongo/UserMongo.ts:41

The list of roles (by name) that the user is a member of and will inherit the permissions of.

Implementation of

User.roles


scopes

scopes: string[] = []

Defined in: src/models/mongo/UserMongo.ts:45

The list of auth scopes that the user has been granted permission for.

Implementation of

User.scopes


uid

uid: string

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:14

The universally unique identifier of the entity.

Implementation of

User.uid

Inherited from

BaseMongoEntity.uid


verified

verified: boolean = false

Defined in: src/models/mongo/UserMongo.ts:49

Indicates if the user's e-mail address has been verified.

Implementation of

User.verified


version

version: number

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:26

The optimistic lock version.

Implementation of

User.version

Inherited from

BaseMongoEntity.version