{"size": 548, "ext": "js", "max_stars_repo_path": "models/record.js", "max_stars_repo_name": "ecaron/home-rower-game", "max_stars_repo_stars_event_min_datetime": "2021-03-12T20:51:15.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-13T17:58:21.000Z", "max_issues_repo_path": "models/record.js", "max_issues_repo_name": "ecaron/waterrower-game", "max_issues_repo_issues_event_min_datetime": "2021-03-13T20:29:25.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-22T19:18:50.000Z", "max_forks_repo_path": "models/record.js", "max_forks_repo_name": "ecaron/waterrower-game", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 10, "max_forks_count": null, "avg_line_length": 21.0769230769, "max_line_length": 44, "alphanum_fraction": 0.6587591241}
'use strict'
const {
  Model
} = require('sequelize')
module.exports = (sequelize, DataTypes) => {
  class Record extends Model {
    static associate (models) {
      this.belongsTo(models.Rower)
    }
  }
  Record.init({
    start: DataTypes.DATE,
    maxSpeed: DataTypes.DECIMAL(10, 2),
    checkpoints: DataTypes.JSON,
    distance: DataTypes.INTEGER,
    duration: DataTypes.INTEGER,
    competitor: DataTypes.INTEGER,
    won: DataTypes.BOOLEAN,
    mode: DataTypes.STRING
  }, {
    sequelize,
    modelName: 'Record'
  })
  return Record
}
