persona_services > Persona

Class: Persona

An Persona is a unique persona of a user within the system. Users can have multiple personas per account and the persona can have associated data such as inventory, progress, achievements, etc.

author: Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy

BaseMongoEntity

↳ Persona

Index

Constructors

Properties


Constructors

constructor

new Persona(other?: any): Persona

Overrides BaseMongoEntity.__constructor

Defined in models/Persona.ts:38

Parameters:

Name Type
Optional other any

Returns: Persona


Properties

_id

● _id: ObjectID

Inherited from BaseMongoEntity._id

Defined in C:/Users/jpsaxr/gitlab/persona_services/node_modules/@acceleratxr/services_common/dist/types/models/BaseMongoEntity.d.ts:12

The internal unique identifier used by MongoDB.


attributes

● attributes: any = undefined

Defined in models/Persona.ts:38

An arbitrary map of key-value pairs containing the characteristics of the persona.


dateCreated

● dateCreated: Date

Inherited from BaseEntity.dateCreated

Defined in C:/Users/jpsaxr/gitlab/persona_services/node_modules/@acceleratxr/services_common/dist/types/models/BaseEntity.d.ts:18

The date and time that the entity was created.


dateModified

● dateModified: Date

Inherited from BaseEntity.dateModified

Defined in C:/Users/jpsaxr/gitlab/persona_services/node_modules/@acceleratxr/services_common/dist/types/models/BaseEntity.d.ts:22

The date and time that the entity was last modified.


description

● description: string = “”

Defined in models/Persona.ts:32

A textual description of the persona.


name

● name: string = “”

Defined in models/Persona.ts:26

The unique name of the persona.


uid

● uid: string

Inherited from BaseEntity.uid

Defined in C:/Users/jpsaxr/gitlab/persona_services/node_modules/@acceleratxr/services_common/dist/types/models/BaseEntity.d.ts:14

The universally unique identifier of the entity.


userUid

● userUid: string = “”

Defined in models/Persona.ts:18

The universally unique identifier of the user that the persona belongs to.


version

● version: number

Inherited from BaseEntity.version

Defined in C:/Users/jpsaxr/gitlab/persona_services/node_modules/@acceleratxr/services_common/dist/types/models/BaseEntity.d.ts:26

The optimistic lock version.