code: function( ORM_MODELS ) {
          const setMethods = models => {
              for(let key in models) {
                  if ( typeof models[key] === 'string' ) {
                      let value = models[key].toLowerCase();
                      models[key] = ORM_MODELS.collections[value];
                  } else {
                      setMethods(models[key]);
                  }
              }
          }
          return new Promise((resolve, reject) => {
              // Automigrations
              waterlineUtils.autoMigrations( CONF.migrate, ORM_MODELS, function(err) {
                  if (err) return reject(err);
                  setMethods(GlobalModles);
                  resolve();
              })
          })
      }
docs: 设置全局访问方法