T_NBATeam.ts 1.5 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('T_NBATeam', {
    Id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true
    },
    MatchTypeId: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    Name: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    NameF: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    NameE: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    Logo: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    FoundDate: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    Area: {
      type: DataTypes.STRING(30),
      allowNull: true
    },
    Gym: {
      type: DataTypes.STRING(30),
      allowNull: true
    },
    Capacity: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    TrainerId: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    Trainer: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    HostDress: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    GuestDress: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    WebSite: {
      type: DataTypes.STRING(80),
      allowNull: true
    },
    WinNO: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    About: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    ShortName: {
      type: DataTypes.STRING(20),
      allowNull: true
    }
  }, {
    tableName: 'T_NBATeam'
  });
};