{"size": 1595, "ext": "js", "max_stars_repo_path": "uber-api/models/WireInBatch.js", "max_stars_repo_name": "Akirix/akirix-suite", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "uber-api/models/WireInBatch.js", "max_issues_repo_name": "Akirix/akirix-suite", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "uber-api/models/WireInBatch.js", "max_forks_repo_name": "Akirix/akirix-suite", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.5, "max_line_length": 57, "alphanum_fraction": 0.3579937304}
module.exports = function( sequelize, DataTypes ){
    var WireInBatch = sequelize.define( 'WireInBatch', {
            id: {
                type: DataTypes.UUID,
                defaultValue: DataTypes.UUIDV1,
                primaryKey: true
            },
            bank_route_id: {
                type: DataTypes.UUID,
                allowNull: false
            },
            filename: {
                type: DataTypes.STRING,
                allowNull: true
            },
            raw_data: {
                type: DataTypes.TEXT,
                allowNull: true
            },
            size: {
                type: DataTypes.INTEGER,
                allowNull: true
            },
            date: {
                type: DataTypes.DATE,
                allowNull: true
            },
            type: {
                type: DataTypes.INTEGER( 2 ).UNSIGNED,
                allowNull: false,
                defaultValue: 0,
                validate: {
                    isIn: [
                        [ 0, 1, 2 ]
                    ]
                },
                comment: '0: Wire, 1: ACH, 2: ACH Return'
            },
            status: {
                type: DataTypes.INTEGER( 2 ).UNSIGNED,
                allowNull: false,
                defaultValue: 0,
                validate: {
                    isIn: [
                        [ 0, 1 ]
                    ]
                },
                comment: "0: New, 1: Processed"
            }

        },
        {
            tableName: 'wire_in_batches'
        } );

    return WireInBatch;
}
