code: function validateNaming(templateTable) {
      var ri, ci, pi, relationToValidate, column, catched, relation, duplicates = [];
  
      for (ri = 0; ri < templateTable.relations.length; ri = ri + 1) {
          relationToValidate = templateTable.relations[ri];
  
          // Check against columns
          for (ci = 0, catched = false; ci < templateTable.columns.length && !catched; ci = ci + 1) {
              column = templateTable.columns[ci];
              if (column.name === relationToValidate.as) {
                  logger.warn('ERROR: %s is already used. %s relation is trying to have alias of previously defined column with same name in table %s.%s.', relationToValidate.as, relationToValidate.type, templateTable.schema, templateTable.tableName);
                  duplicates.push(relationToValidate.as);
                  catched = true;
              }
          }
  
          // Check against previous relations. Later realitons will check against this already.
          for (pi = 0, catched = false; pi < ri && !catched; pi = pi + 1) {
              relation = templateTable.relations[pi];
              if (relation.as === relationToValidate.as) {
                  logger.warn('ERROR: %s is already used. %s relation is trying to have alias of previously defined %s relation in table %s.%s.', relationToValidate.as, relationToValidate.type, relation.type, templateTable.schema, templateTable.tableName);
                  duplicates.push(relationToValidate.as);
                  catched = true;
              }
          }
      }
  
      if (duplicates.length > 0) {
          return 'Table ' + templateTable.schema + '.' + templateTable.tableName + ' has duplicate relation aliases: ' + duplicates.join(',') + '.';
      }
  
  }
docs: Validates model relations naming. If any relation has same alias with any column and/or relation, this function
  returns description of the error as string.
  @private
  @param {Object} templateTable -
  @param {Object} relation -