lib/index.js
function getModelNameFor(table) {
    var schemaName = getSpecificConfig(table.name(), 'generate.modelCamelCase') ? inflection.camelize(inflection.underscore(table.schema().name()), true) : table.schema().name(),
        tableName  = getSpecificConfig(table.name(), 'generate.modelCamelCase') ? inflection.camelize(inflection.underscore(table.name()), true) : table.name();

    return getSpecificConfig(table.name(), 'generate.useSchemaName') ? schemaName + '.' + tableName : tableName;
}
function getModelNameFor(table) {
    var schemaName = getSpecificConfig(table.name(), 'generate.modelCamelCase') ? inflection.camelize(inflection.underscore(table.schema().name()), true) : table.schema().name(),
        tableName  = getSpecificConfig(table.name(), 'generate.modelCamelCase') ? inflection.camelize(inflection.underscore(table.name()), true) : table.name();

    return getSpecificConfig(table.name(), 'generate.useSchemaName') ? schemaName + '.' + tableName : tableName;
}
function getModelNameFor ( table ) { var schemaName = getSpecificConfig ( table . name ( ) , 'generate.modelCamelCase' ) ? inflection . camelize ( inflection . underscore ( table . schema ( ) . name ( ) ) , true ) : table . schema ( ) . name ( ) , tableName = getSpecificConfig ( table . name ( ) , 'generate.modelCamelCase' ) ? inflection . camelize ( inflection . underscore ( table . name ( ) ) , true ) : table . name ( ) ; return getSpecificConfig ( table . name ( ) , 'generate.useSchemaName' ) ? schemaName + '.' + tableName : tableName ; }
Calculates model name for given table.
@private
@param {object} table - pg-structure table object.
@returns {string} - Model name for table
Calculates model name for given table .