I continue to study hanami on my own and I ran into the fact that when generating the User model, hanami generates 2 entities and repositories directories that contain files
user.rb in the entities directory
class User < Hanami::Entity
end
user_repositories.rb in the repositories directory
class UserRepository < Hanami::Repository
end
I read the documentation but I still did not understand in which of these classes the validation with associations should be described or why each of these classes is needed in principle, since in RoR we needed 1 model. please explain (