module.exports = function(Sequelize, DataTypes) {
  var schema = {
    id: {
      primaryKey: true,
      type: DataTypes.UUID,
      defaultValue: DataTypes.UUIDV4
    },
    name: { type: DataTypes.STRING, allowNull: false, unique: 'leaguePlayerName', validate: { len: [3,50] }},
    LeagueId: {
      type: DataTypes.UUID,
      allowNull: false,
      unique: 'leaguePlayerName'
    },
    deleted: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: false }
  };
  var Player = Sequelize.define("Player", schema, {
      classMethods: {
        associate: function(models) {
          Player.belongsTo(models.League, {foreignKey: 'LeagueId', onDelete: "CASCADE" });
        }
      },
      defaultScope: {
        where: {
          deleted: false
        }
      }
    }
  )

  return Player;
};

@@ -69,22 +69,16 @@
    id: %7B
-%0A     
  primary
@@ -87,22 +87,16 @@
 y: true,
-%0A     
  type: D
@@ -109,22 +109,16 @@
 es.UUID,
-%0A     
  default
@@ -140,20 +140,16 @@
 s.UUIDV4
-%0A   
  %7D,%0A    
@@ -201,36 +201,8 @@
 lse,
- unique: 'leaguePlayerName',
  val
@@ -241,22 +241,16 @@
 gueId: %7B
-%0A     
  type: D
@@ -263,22 +263,16 @@
 es.UUID,
-%0A     
  allowNu
@@ -284,46 +284,8 @@
 alse
-,%0A      unique: 'leaguePlayerName'%0A   
  %7D,%0A
@@ -578,24 +578,24 @@
 ;%0A        %7D%0A
-
       %7D,%0A   
@@ -587,24 +587,146 @@
  %7D%0A      %7D,%0A
+      indexes: %5B%0A        %7B unique: 'leaguePlayerName', fields: %5B'name', 'LeagueId'%5D, where: %7B deleted: false %7D %7D%0A      %5D,%0A
       defaul

Change player name to be unique on for not deleted players