T_Player.ts 1.1 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('T_Player', {
    Id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      primaryKey: true
    },
    Kind: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    NameS: {
      type: DataTypes.STRING,
      allowNull: true
    },
    NameJ: {
      type: DataTypes.STRING,
      allowNull: true
    },
    NameF: {
      type: DataTypes.STRING,
      allowNull: true
    },
    NameE: {
      type: DataTypes.STRING,
      allowNull: true
    },
    Country: {
      type: DataTypes.STRING,
      allowNull: true
    },
    Birthday: {
      type: DataTypes.STRING,
      allowNull: true
    },
    Height: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    Weight: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    Photo: {
      type: DataTypes.STRING,
      allowNull: true
    },
    PriorTeams: {
      type: DataTypes.STRING,
      allowNull: true
    },
    About: {
      type: DataTypes.TEXT,
      allowNull: true
    }
  }, {
    tableName: 'T_Player'
  });
};