Skip to main content

Class: ProfileMongo

Defined in: auth/src/models/mongo/ProfileMongo.ts:51

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: auth/src/models/mongo/ProfileMongo.ts:85

Parameters​

other?​

Partial<ProfileMongo>

Returns​

ProfileMongo

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


avatar?​

optional avatar?: string

Defined in: auth/src/models/mongo/ProfileMongo.ts:55

The URL or path to the user's avatar image (e.g. gravatar).

Implementation of​

Profile.avatar


birthdate?​

optional birthdate?: Date

Defined in: auth/src/models/mongo/ProfileMongo.ts:61

The user's date of birth.

Implementation of​

Profile.birthdate


contacts​

contacts: Contact[] = []

Defined in: auth/src/models/mongo/ProfileMongo.ts:66

The list of the user's contacts.

Implementation of​

Profile.contacts


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​

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

Profile.dateModified

Inherited from​

BaseMongoEntity.dateModified


familyName?​

optional familyName?: string

Defined in: auth/src/models/mongo/ProfileMongo.ts:76

The user's family surname (or last name).

Implementation of​

Profile.familyName


givenName?​

optional givenName?: string

Defined in: auth/src/models/mongo/ProfileMongo.ts:71

The user's given name (aka: first name).

Implementation of​

Profile.givenName


preferences​

preferences: Preferences

Defined in: auth/src/models/mongo/ProfileMongo.ts:81

The user's account preferences.

Implementation of​

Profile.preferences


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​

Profile.uid

Inherited from​

BaseMongoEntity.uid


version​

version: number

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

The optimistic lock version.

Implementation of​

Profile.version

Inherited from​

BaseMongoEntity.version