{"size": 437, "ext": "js", "max_stars_repo_path": "test/expected/columns.js", "max_stars_repo_name": "dfadev/sequelize-markup", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/expected/columns.js", "max_issues_repo_name": "dfadev/sequelize-markup", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/expected/columns.js", "max_forks_repo_name": "dfadev/sequelize-markup", "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": 15.6071428571, "max_line_length": 42, "alphanum_fraction": 0.5011441648}
const User = sequelize.define('User', {
  name: {
    unique: true,
    type: DataTypes.STRING(60),

    get() {
      return this.getDataValue('name');
    },

    set(val) {
      this.setDataValue('name', val);
    },

    validate: {
      isAlphanumeric: true,
      notNull: {
        msg: 'name can\'t be null'
      },

      isEven(val) {
        throw new Error('Bad validation');
      },

      isNotNull: true
    }
  }
});
