{"size": 758, "ext": "js", "max_stars_repo_path": "models/eventresponse.js", "max_stars_repo_name": "PrideFuu/Beavis", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "models/eventresponse.js", "max_issues_repo_name": "PrideFuu/Beavis", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "models/eventresponse.js", "max_forks_repo_name": "PrideFuu/Beavis", "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": 36.0952380952, "max_line_length": 86, "alphanum_fraction": 0.6187335092}
"use strict";
module.exports = function (sequelize, DataTypes) {
    return sequelize.define('EventResponse', {
        id: {type: DataTypes.INTEGER.UNSIGNED, primaryKey: true, autoIncrement: true},
        event_type: {type: DataTypes.STRING, allowNull: false},
        pattern: {type: DataTypes.STRING},
        response: {type: DataTypes.STRING, allowNull: false},
        cooldown: {type: DataTypes.INTEGER.UNSIGNED, defaultValue: 30},
        is_active: {type: DataTypes.BOOLEAN, defaultValue: true}
    }, {
        underscored: true,
        tableName: 'event_responses',
        classMethods: {
            associate: function (models) {
                // associations can be defined here
            }
        }
    });

    return EventResponse;
}