T_Team.ts 1.7 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('T_Team', {
    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
    },
    HomeArena: {
      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
    },
    About: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    EnWiki: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    CnWiki: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    WikiLogo: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    SportsDtLogo: {
      type: DataTypes.STRING(500),
      allowNull: true
    }
  }, {
    tableName: 'T_Team'
  });
};