code: function generateModels(mongoose) {
    internals.modelsGenerated = true
  
    let config = defaultConfig
  
    extend(true, config, module.exports.config)
  
    let Log = getLogger('models')
  
    module.exports.logger = Log
  
    return modelGenerator(mongoose, Log, config).then(function(models) {
      internals.globalModels = models
      return models
    })
  }
docs: Allows the user to pre-generate the models before the routes in case the models are needed
  in other plugins (ex: auth plugin might require user model)
  @param mongoose
  @returns {*}