models/User

User model module.
Source:

Requires

  • module:mongoose

Type Definitions

UserSchema

User Schema for MongoDB.
Properties:
Name Type Description
name string The name of the user.
email string The email address of the user (unique).
password string The hashed password of the user.
avatar string The avatar URL of the user.
date Date The date when the user was created (default: Date.now).
Source:
Type:
  • Object