Skip to main content

Class: AliasSQL

Defined in: auth/src/models/sql/AliasSQL.ts:36

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

Extends​

  • BaseEntity

Implements​

Constructors​

Constructor​

new AliasSQL(other?): AliasSQL

Defined in: auth/src/models/sql/AliasSQL.ts:52

Parameters​

other?​

Partial<AliasSQL>

Returns​

AliasSQL

Overrides​

BaseEntity.constructor

Properties​

alias​

alias: string = ""

Defined in: auth/src/models/sql/AliasSQL.ts:40

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​

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

BaseEntity.dateModified


type​

type: AliasType = AliasType.NAME

Defined in: auth/src/models/sql/AliasSQL.ts:43

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​

BaseEntity.uid


userUid​

userUid: string = ""

Defined in: auth/src/models/sql/AliasSQL.ts:47

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

Implementation of​

Alias.userUid


verified​

verified: boolean = false

Defined in: auth/src/models/sql/AliasSQL.ts:50

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​

BaseEntity.version