module.exports = (sequelize, DataTypes) => {
  const UserGroup = sequelize.define('UserGroup', {
    userId: {
      type: DataTypes.INTEGER,
      allowNull: false
    },
    groupId: {
      type: DataTypes.INTEGER,
      allowNull: false
    },
  }, {
    timestamps: false
  });
  return UserGroup;
};


@@ -244,24 +244,228 @@
   %7D,%0A  %7D, %7B%0A
+    classMethods: %7B%0A      associate: (models) =%3E %7B%0A        UserGroup.belongsTo(models.Group, %7B foreignKey: 'groupId' %7D);%0A        UserGroup.belongsTo(models.User, %7B foreignKey: 'userId' %7D);%0A      %7D%0A    %7D,%0A
     timestam

Modify Server side model to work well with client