Skip to main content

Class: AliasMongo

Defined in: auth/src/models/mongo/AliasMongo.ts:42

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

Extends​

  • BaseMongoEntity

Implements​

Constructors​

Constructor​

new AliasMongo(other?): AliasMongo

Defined in: auth/src/models/mongo/AliasMongo.ts:58

Parameters​

other?​

Partial<AliasMongo>

Returns​

AliasMongo

Overrides​

BaseMongoEntity.constructor

Properties​

_id?​

optional _id?: any

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

The internal unique identifier used by MongoDB.

Inherited from​

BaseMongoEntity._id


alias​

alias: string = ""

Defined in: auth/src/models/mongo/AliasMongo.ts:46

The alias to uniquely identify a specific user account.

Implementation of​

Alias.alias


dateCreated​

dateCreated: Date

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

The date and time that the entity was created.

Implementation of​

Alias.dateCreated

Inherited from​

BaseMongoEntity.dateCreated


dateModified​

dateModified: Date

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

The date and time that the entity was last modified.

Implementation of​

Alias.dateModified

Inherited from​

BaseMongoEntity.dateModified


type​

type: AliasType = AliasType.NAME

Defined in: auth/src/models/mongo/AliasMongo.ts:49

The type of data that the alias represents (e.g. email, phone, name).

Implementation of​

Alias.type


uid​

uid: string

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

The universally unique identifier of the entity.

Implementation of​

Alias.uid

Inherited from​

BaseMongoEntity.uid


userUid​

userUid: string = ""

Defined in: auth/src/models/mongo/AliasMongo.ts:53

The unique identifier of the user account associated with this alias.

Implementation of​

Alias.userUid


verified​

verified: boolean = false

Defined in: auth/src/models/mongo/AliasMongo.ts:56

Indicates if this alias has been verified.

Implementation of​

Alias.verified


version​

version: number

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

The optimistic lock version.

Implementation of​

Alias.version

Inherited from​

BaseMongoEntity.version