Creates a generic type T instance object
The item to assign to this instance
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]
The user auth type
Base Mongoose instance the model uses.
If this is a discriminator model, baseModelName is the name of the base model.
The birth date
Return a clone with JSON.parse(JSON.stringify(this))
Collection the model uses.
Connection the model uses.
Registered discriminators for this model.
The email (used also as username)
The google id, populated if authType Google
The record identifier
The user image
The name of the model
The full name
The user encrypted password, populated if authType is local
The phone numbers
The registration date
The residence address
The role
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
Removes this document from the db.
optional callback
Saves this document.
options optional options
optional callback
Generated using TypeDoc
A registred user