template/sequelize4/index.js
function init() {
    var debugFile = path.join(__dirname, 'debug.js');

    if (debug) {
        if (fs.existsSync(debugFile)) { fs.unlinkSync(debugFile); }
        debugFD = fs.openSync(debugFile, 'a');
    }

    getFileList(modelsPath).forEach(defineModel);
    processAllRelations(defineRelation);

    if (debug) {
        fs.closeSync(debugFD);
    }
}
function init() {
    var debugFile = path.join(__dirname, 'debug.js');

    if (debug) {
        if (fs.existsSync(debugFile)) { fs.unlinkSync(debugFile); }
        debugFD = fs.openSync(debugFile, 'a');
    }

    getFileList(modelsPath).forEach(defineModel);
    processAllRelations(defineRelation);

    if (debug) {
        fs.closeSync(debugFD);
    }
}
function init ( ) { var debugFile = path . join ( __dirname , 'debug.js' ) ; if ( debug ) { if ( fs . existsSync ( debugFile ) ) { fs . unlinkSync ( debugFile ) ; } debugFD = fs . openSync ( debugFile , 'a' ) ; } getFileList ( modelsPath ) . forEach ( defineModel ) ; processAllRelations ( defineRelation ) ; if ( debug ) { fs . closeSync ( debugFD ) ; } }
Initializes models.
@private
Initializes models .