stat_simple_predict.ts 1.2 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('stat_simple_predict', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    created_at: {
      type: DataTypes.DATE,
      allowNull: true
    },
    updated_at: {
      type: DataTypes.DATE,
      allowNull: true
    },
    lottery_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    issue_name: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    open_number: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    prediction_option_text: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    user_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    user_name: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    prediction_value: {
      type: DataTypes.JSON,
      allowNull: true
    },
    prediction_result: {
      type: DataTypes.JSON,
      allowNull: true
    },
    prediction_date: {
      type: DataTypes.DATE,
      allowNull: true
    }
  }, {
    tableName: 'stat_simple_predict'
  });
};