chart_lottery.ts 984 字节
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('chart_lottery', {
    Id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true
    },
    UpdateFlag: {
      type: DataTypes.BIGINT,
      allowNull: true
    },
    Name: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    Code: {
      type: DataTypes.STRING(25),
      allowNull: false
    },
    TypeId: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      defaultValue: '0'
    },
    DayOpenNo: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    OpenRegex: {
      type: DataTypes.STRING(100),
      allowNull: false
    },
    IssueRegex: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    AppCenterId: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      defaultValue: '1'
    }
  }, {
    tableName: 'chart_lottery'
  });
};