Skip to main content

Class: ProfileSQL

Defined in: src/models/sql/ProfileSQL.ts:34

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

Extends

  • BaseEntity

Implements

Constructors

Constructor

new ProfileSQL(other?): ProfileSQL

Defined in: src/models/sql/ProfileSQL.ts:68

Parameters

other?

Partial<ProfileSQL>

Returns

ProfileSQL

Overrides

BaseEntity.constructor

Properties

avatar?

optional avatar?: string

Defined in: src/models/sql/ProfileSQL.ts:38

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

Implementation of

Profile.avatar


birthdate?

optional birthdate?: Date

Defined in: src/models/sql/ProfileSQL.ts:44

The user's date of birth.

Implementation of

Profile.birthdate


contacts

contacts: Contact[] = []

Defined in: src/models/sql/ProfileSQL.ts:49

The list of the user's contacts.

Implementation of

Profile.contacts


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

Profile.dateCreated

Inherited from

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

Profile.dateModified

Inherited from

BaseEntity.dateModified


familyName?

optional familyName?: string

Defined in: src/models/sql/ProfileSQL.ts:59

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

Implementation of

Profile.familyName


givenName?

optional givenName?: string

Defined in: src/models/sql/ProfileSQL.ts:54

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

Implementation of

Profile.givenName


preferences

preferences: Preferences

Defined in: src/models/sql/ProfileSQL.ts:64

The user's account preferences.

Implementation of

Profile.preferences


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

Profile.uid

Inherited from

BaseEntity.uid


version

version: number

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

The optimistic lock version.

Implementation of

Profile.version

Inherited from

BaseEntity.version