T_NBALeagueRank.ts 2.1 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('T_NBALeagueRank', {
    Id: {
      type: DataTypes.INTEGER(11),
      allowNull: false
    },
    TeamId: {
      type: DataTypes.INTEGER(11),
      allowNull: false
    },
    Total: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    Win: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    Lose: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    WinPoint: {
      type: DataTypes.DECIMAL,
      allowNull: true
    },
    LosePoint: {
      type: DataTypes.DECIMAL,
      allowNull: true
    },
    WinDifference: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    WinAverage: {
      type: DataTypes.DECIMAL,
      allowNull: true
    },
    LostAverage: {
      type: DataTypes.DECIMAL,
      allowNull: true
    },
    LeagueWin: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    LeagueLost: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    DivisionWin: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    DivisionLose: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    HostWin: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    HostLose: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    GuestWin: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    GusetLost: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    TenWin: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    TenLost: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    State: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    Type: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    MatchTypeId: {
      type: DataTypes.INTEGER(11),
      allowNull: false
    },
    MatchSeason: {
      type: DataTypes.STRING(20),
      allowNull: false
    },
    tid: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    }
  }, {
    tableName: 'T_NBALeagueRank'
  });
};