{"size": 562, "ext": "js", "max_stars_repo_path": "models/Participant.js", "max_stars_repo_name": "WellsWu4621/Bets-Den", "max_stars_repo_stars_event_min_datetime": "2021-11-30T22:22:27.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-30T22:22:27.000Z", "max_issues_repo_path": "models/Participant.js", "max_issues_repo_name": "WellsWu4621/Surprise-Mechanics", "max_issues_repo_issues_event_min_datetime": "2021-06-27T23:49:47.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-27T23:49:47.000Z", "max_forks_repo_path": "models/Participant.js", "max_forks_repo_name": "WellsWu4621/Surprise-Mechanics", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 16.5294117647, "max_line_length": 49, "alphanum_fraction": 0.5765124555}
const { Model, DataTypes } = require('sequelize')

const sequelize = require('../db')

class Participant extends Model { }

Participant.init(
  {
    // define columns
    alignCreator: {
      type: DataTypes.BOOLEAN,
      defaultValue: true
    },
    betamount: {
      type: DataTypes.INTEGER,
      defaultValue: 10
    },
    bet_id: {
      type: DataTypes.INTEGER,
      references: {
        model: 'bets',
        key: 'id'
      }
    }
  },
  {
    sequelize,
    timestamps: false,
    modelName: 'participants'
  }
)

module.exports = Participant
