code: function validatePersitence(persistence) {
      assert(persistence.name, "[Database config] name of persistence is mandatory");
      assert(persistence.dir, "[Database config] dir of models is mandatory [" + persistence.name + " persistence]");
      assert(persistence.hasOwnProperty('default'));
      assert(!persistence.hasOwnProperty('onFirstRun') || (persistence.hasOwnProperty('onFirstRun') && _.isFunction(persistence.onFirstRun)), "[Database config] onFirstRun must be a function  [" + persistence.name + " persistence]");
      assert(persistence.driver, "[Database config] driver is mandatory  [" + persistence.name + " persistence]");
  }
docs: Validator