code: function replaceTableNames(sql, identifiers, sequelize) {
  	const {queryInterface} = sequelize;
  	_.forIn(identifiers, (model, identifier) => {
  		const tableName = model.getTableName();
  		sql = sql.replace(
  			new RegExp(`\\*${identifier}(?![a-zA-Z0-9_])`, 'g'),
  			tableName.schema ? tableName.toString() : queryInterface.quoteIdentifier(tableName)
  		);
  	});
  	return sql;
  }
docs: Replace identifier with model's full table name taking schema into account