ms_schedule.ts 4.9 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('ms_schedule', {
    ms_schedule_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    createdAt: {
      type: DataTypes.DATE,
      allowNull: false,
      defaultValue: '0001-01-01 00:00:00'
    },
    updatedAt: {
      type: DataTypes.DATE,
      allowNull: false,
      defaultValue: '0001-01-01 00:00:00'
    },
    core_match_id: {
      type: DataTypes.BIGINT,
      allowNull: false
    },
    core_lottery_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    core_issue_name: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ''
    },
    core_issue_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    core_match_number: {
      type: DataTypes.STRING(10),
      allowNull: false,
      defaultValue: ''
    },
    core_match_time: {
      type: DataTypes.DATE,
      allowNull: false,
      defaultValue: '0001-01-01 00:00:00'
    },
    core_updateflag: {
      type: DataTypes.BIGINT,
      allowNull: false,
      defaultValue: '0'
    },
    info_match_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    info_host_team_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    info_guest_team_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    info_match_type_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    sportsdt_match_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    sportsdt_host_team_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    sportsdt_guest_team_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    sportsdt_competition_id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    sportsdt_type: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ''
    },
    sportsdt_degree: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ''
    },
    sportsdt_num: {
      type: DataTypes.STRING(10),
      allowNull: false,
      defaultValue: ''
    },
    sportsdt_starttime: {
      type: DataTypes.DATE,
      allowNull: false,
      defaultValue: '0001-01-01 00:00:00'
    },
    sportsdt_isah: {
      type: DataTypes.INTEGER(1).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    sporttery_match_id: {
      type: DataTypes.INTEGER(18).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    sportsdt_n: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      defaultValue: '0'
    },
    sporttery_competition_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    sporttery_host_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    sporttery_host_name: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    sporttery_guest_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    sporttery_guest_name: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    info_competition_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    leisu_competition_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    leisu_host_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    leisu_guest_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    leisu_match_type_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    leisu_match_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    yiqiu_host_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    yiqiu_guest_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    yiqiu_competition_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    yiqiu_match_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    w500_host_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    w500_guest_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    w500_competition_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    w500_match_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    }
  }, {
    tableName: 'ms_schedule'
  });
};