persona_services > PersonaStatDefinition

Class: PersonaStatDefinition

The PersonaStatDefinition describes a single statistic that an persona can have.

author: Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy

BaseMongoEntity

↳ PersonaStatDefinition

Index

Constructors

Properties


Constructors

constructor

new PersonaStatDefinition(other?: any): PersonaStatDefinition

Overrides BaseMongoEntity.__constructor

Defined in models/PersonaStatDefinition.ts:56

Parameters:

Name Type
Optional other any

Returns: PersonaStatDefinition


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.


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.


default

● default: any = undefined

Defined in models/PersonaStatDefinition.ts:56

The default value of the stat that will be designed to Persona instances.


max

● max: any = undefined

Defined in models/PersonaStatDefinition.ts:44

The maximum possible value that can be used.


min

● min: any = undefined

Defined in models/PersonaStatDefinition.ts:38

The minimum possible value that can be used.


name

● name: string = “”

Defined in models/PersonaStatDefinition.ts:20

The unique name of the statistic.


type

● type: string = “number”

Defined in models/PersonaStatDefinition.ts:32

The data type describing how the statistic’s value is stored.

Possible values are

  • "boolean"
  • "number"
  • "object"
  • "string"

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.


values

● values: any[] = []

Defined in models/PersonaStatDefinition.ts:50

A list of all possible values that can be used.


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.