Class: ProfileMongo
Defined in: src/models/mongo/ProfileMongo.ts:34
Implementation of the Profile interface for storage in a MongoDB database. If SQL is desired, please use
models.sql.ProfileSQL instead.
Extends
BaseMongoEntity
Implements
Constructors
Constructor
new ProfileMongo(
other?):ProfileMongo
Defined in: src/models/mongo/ProfileMongo.ts:68
Parameters
other?
Partial<ProfileMongo>
Returns
ProfileMongo
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
avatar?
optionalavatar?:string
Defined in: src/models/mongo/ProfileMongo.ts:38
The URL or path to the user's avatar image (e.g. gravatar).
Implementation of
birthdate?
optionalbirthdate?:Date
Defined in: src/models/mongo/ProfileMongo.ts:44
The user's date of birth.
Implementation of
contacts
contacts:
Contact[] =[]
Defined in: src/models/mongo/ProfileMongo.ts:49
The list of the user's contacts.
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
familyName?
optionalfamilyName?:string
Defined in: src/models/mongo/ProfileMongo.ts:59
The user's family surname (or last name).
Implementation of
givenName?
optionalgivenName?:string
Defined in: src/models/mongo/ProfileMongo.ts:54
The user's given name (aka: first name).
Implementation of
preferences
preferences:
Preferences
Defined in: src/models/mongo/ProfileMongo.ts:64
The user's account preferences.
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
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