Class: AliasMongo
Defined in: src/models/mongo/AliasMongo.ts:32
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: src/models/mongo/AliasMongo.ts:47
Parameters
other?
Partial<AliasMongo>
Returns
AliasMongo
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
alias
alias:
string=""
Defined in: src/models/mongo/AliasMongo.ts:36
The alias to uniquely identify a specific user account.
Implementation of
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
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
Inherited from
BaseMongoEntity.dateModified
type
type:
AliasType=AliasType.NAME
Defined in: src/models/mongo/AliasMongo.ts:39
The type of data that the alias represents (e.g. email, phone, name).
Implementation of
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
Inherited from
BaseMongoEntity.uid
userUid
userUid:
string=""
Defined in: src/models/mongo/AliasMongo.ts:42
The unique identifier of the user account associated with this alias.
Implementation of
verified
verified:
boolean=false
Defined in: src/models/mongo/AliasMongo.ts:45
Indicates if this alias has been verified.
Implementation of
version
version:
number
Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:26
The optimistic lock version.
Implementation of
Inherited from
BaseMongoEntity.version