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

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('T_NBAPlayer', {
    Id: {
      type: DataTypes.INTEGER(11),
      allowNull: false
    },
    TeamId: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    TeamName: {
      type: DataTypes.STRING(30),
      allowNull: true
    },
    NameS: {
      type: DataTypes.STRING(30),
      allowNull: true
    },
    NameJ: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    NameF: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    NameE: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    Country: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    Birthday: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    Height: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    Weight: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    Photo: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    Place: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    NBASeniority: {
      type: DataTypes.INTEGER(6),
      allowNull: true
    },
    AverageScore: {
      type: DataTypes.BIGINT,
      allowNull: true
    },
    AverageAssists: {
      type: DataTypes.BIGINT,
      allowNull: true
    },
    AverageRebounds: {
      type: DataTypes.BIGINT,
      allowNull: true
    },
    About: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    tid: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    }
  }, {
    tableName: 'T_NBAPlayer'
  });
};