{"size": 385, "ext": "js", "max_stars_repo_path": "node/hpi/hpi/models/orders.js", "max_stars_repo_name": "shunwuyu/lesson_show", "max_stars_repo_stars_event_min_datetime": "2018-06-19T07:23:02.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-26T13:33:16.000Z", "max_issues_repo_path": "node/hpi/hpi/models/orders.js", "max_issues_repo_name": "shunwuyu/lesson_show", "max_issues_repo_issues_event_min_datetime": "2019-07-01T05:49:46.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T22:53:00.000Z", "max_forks_repo_path": "node/hpi/hpi/models/orders.js", "max_forks_repo_name": "shunwuyu/lesson_show", "max_forks_repo_forks_event_min_datetime": "2018-11-01T00:49:59.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-27T07:18:37.000Z"}
{"max_stars_count": 41, "max_issues_count": 101, "max_forks_count": 21, "avg_line_length": 18.3333333333, "max_line_length": 60, "alphanum_fraction": 0.5376623377}
module.exports = (sequelize, DataTypes) => sequelize.define(
  'orders',
  {
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    user_id: {
      type: DataTypes.INTEGER,
      allowNull: false,
    },
    payment_status: {
      type: DataTypes.ENUM('0', '1'),
      defaultValue: '0'
    },
  },
  {
    tableName: 'orders',
  },
);