```ruby
class PlanSerializer < ActiveModel::Serializer
  attributes :id, :date, :income
  has_many :purchases
end
```

Add has_many relationship to plan serializer
user
```ruby
class PlanSerializer < ActiveModel::Serializer
  attributes :id, :date, :income
  has_many :purchases
  has_many :users
end
```
assistant