Base Mongoose instance the model uses.
If this is a discriminator model, baseModelName is the name of the base model.
Collection the model uses.
Connection the model uses.
Registered discriminators for this model.
Virtual getter that by default returns the document's _id field cast to a string, or in the case of ObjectIds, its hexString. This id getter may be disabled by passing the option { id: false } at schema construction time. If disabled, id behaves like any other field on a document and can be assigned any value.
Defines a range of marks student may get for this activity.
Template strings with the shape of 'text ${teacher} text ${mark} text ${student} text ${subject}'. Apply a regular expression and substitute ${...} patterns with appropriate data.
The name of the model
Schema the model uses.
Signal that we desire an increment of this documents version.
Override whether mongoose thinks this doc is deleted or not
whether mongoose thinks this doc is deleted.
Returns another Model instance.
model name
Returns a random string from message_templates.positive
if mark > 0
otherwise a random string from message_templates.negative
array.
Mark that a student got.
Removes this document from the db.
optional callback
Renders random template from
message_templates.positive/negative
array, depending on
whether data.mark is greater or lesser than 0.
an object that contains the info about the type of template to render and all the needed data about the event.
Saves this document.
options optional options
optional callback
Generated using TypeDoc
Version using default version key. See http://mongoosejs.com/docs/guide.html#versionKey If you're using another key, you will have to access it using []: doc[_myVersionKey]