Skip to main content

Class: UserSQL

Defined in: src/models/sql/UserSQL.ts:33

Implementation of the User interface for storage in a SQLDB database. If MongoDB is desired, please use models.mongo.UserMongo instead.

Extends

  • BaseEntity

Implements

Constructors

Constructor

new UserSQL(other?): UserSQL

Defined in: src/models/sql/UserSQL.ts:46

Parameters

other?

Partial<UserSQL>

Returns

UserSQL

Overrides

BaseEntity.constructor

Properties

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

BaseEntity.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

BaseEntity.dateModified


roles

roles: string[] = []

Defined in: src/models/sql/UserSQL.ts:36

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/sql/UserSQL.ts:40

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

BaseEntity.uid


verified

verified: boolean = false

Defined in: src/models/sql/UserSQL.ts:44

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

BaseEntity.version