docs: function resolveSchemaDeps(result, schema, schemasMap) {
    if (! (schema.deps || []).length) return result.concat([ schema ]);
  
    return schema.deps.reduce(function (result, tableName) {
      return (result.indexOf(schemasMap[tableName]) >= 0) ?
             result :
             result.concat(resolveSchemaDeps(result, schemasMap[tableName], schemasMap));
    }, result).concat([ schema ]);
  }