text: const mongoose = require('mongoose');
  const Schema = mongoose.Schema;
  
  // Create Schema
  const UserSchema = new Schema({
  	name: {
  		type: String,
  		required: true,
  		trim: true
  	},
  	email: {
  		type: String,
  		unique: true,
  		required: true,
  		lowercase: true,
  		trim: true
  	},
  	password: {
  		type: String,
  		required: true
  	},
  	avatar: {
  		type: String
  	},
  	date: {
  		type: Date,
  		default: Date.now
  	}
  });
  
  module.exports = User = mongoose.model('users', UserSchema);
  