T_Match.ts 2.0 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('T_Match', {
    Id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true
    },
    MatchTypeId: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    MatchSubId: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    MatchSeason: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    Round: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    Group: {
      type: DataTypes.STRING(10),
      allowNull: true
    },
    Status: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    BeginTime: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    HostTeamId: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    HostTeam: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    HostOrder: {
      type: DataTypes.STRING(10),
      allowNull: true
    },
    HostHalfScore: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    HostScore: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    HostRed: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    GuestTeamId: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    GuestTeam: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    GuestOrder: {
      type: DataTypes.STRING(10),
      allowNull: true
    },
    GuestHalfScore: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    GuestScore: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    GuestRed: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    RqPlate: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    DxPlate: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    TvInfo: {
      type: DataTypes.STRING(300),
      allowNull: true
    },
    IsSale: {
      type: DataTypes.INTEGER(1),
      allowNull: true
    }
  }, {
    tableName: 'T_Match'
  });
};