lib/index.js
function getFileName(table) {
    var fileName = table.name() + '.js';
    if (getSpecificConfig(table.name(), 'generate.useSchemaName')) {        // Prefix with schema name if config requested it.
        fileName =  table.schema().name() + '_' + fileName;
    }
    return fileName;
}
function getFileName(table) {
    var fileName = table.name() + '.js';
    if (getSpecificConfig(table.name(), 'generate.useSchemaName')) {        // Prefix with schema name if config requested it.
        fileName =  table.schema().name() + '_' + fileName;
    }
    return fileName;
}
function getFileName ( table ) { var fileName = table . name ( ) + '.js' ; if ( getSpecificConfig ( table . name ( ) , 'generate.useSchemaName' ) ) { // Prefix with schema name if config requested it. fileName = table . schema ( ) . name ( ) + '_' + fileName ; } return fileName ; }
Calculates and returns file name based on schema and table.
@private
@param {object} table - pg-structure table object
@returns {string} - file name for the model
Calculates and returns file name based on schema and table .