Show:

Mixin for base model to support creating record by prototype.

Methods

copy

(
  • prototypeProjection
)
Promise

Creates a new record using base model instance with the specified or default projection as prototype.

Parameters:

  • prototypeProjection String

    Optional projection name to be used when creating record by prototype.

Returns:

Promise:

promise

save

(
  • [options]
)
Promise

Save the record and persist any changes to the record to an external source via the adapter. More info.

Parameters:

Returns:

Properties

createTime

Date

Creation date and time of model.

creator

String

Name of user who created model.

currentUserName

Unknown

Name of current user.

editor

String

Name of user who changed model last time.

editTime

Date

Date and time of last changes in model.

prototypeProjection

String

The default projection name to be used when creating record by prototype.