@acceleratxr/core_sdk / EntityBase

Class: EntityBase#

Provides an abstract base class for all model classes that can be stored in a database as an entity.

Hierarchy#

Index#

Constructors#

Properties#

Constructors#

constructor#

+ new EntityBase(other: any): EntityBase

Defined in src/EntityBase.ts:28

Parameters:#

Name

Type

other

any

Returns: EntityBase

Properties#

dateCreated#

dateCreated: Date = new Date()

Defined in src/EntityBase.ts:18

The date and time that the object was created.


dateModified#

dateModified: Date = new Date()

Defined in src/EntityBase.ts:23

The date and time that the object was last modified.


uid#

uid: string = uuid.v4()

Defined in src/EntityBase.ts:13

The universally unique identifier of the object.


version#

version: number = 0

Defined in src/EntityBase.ts:28

The optimistic locking version of the object.