text: // users-model.js - A mongoose model
  //
  // See http://mongoosejs.com/docs/models.html
  // for more of what you can do here.
  module.exports = function(app) {
    const mongooseClient = app.get('mongooseClient')
    const users = new mongooseClient.Schema(
      {
        email: { type: String, unique: true },
        password: { type: String },
        name: { type: String },
        avatarName: { type: String, default: '' },
        avatarColor: { type: String, default: '' }
      },
      {
        timestamps: true
      }
    )
  
    return mongooseClient.model('users', users)
  }
  