Central to my app is the Account. I have a lot of schemas that belongs_to Account. I like including corresponding has_one/has_many on Account for query/build_assoc conveniences, but I don’t want to clutter the Account struct with an increasing number of non-core associations that will always be #Ecto.Association.NotLoaded<...>. Is there a way to define an association without adding it to the schema struct?
Off the top of my head the features I would most want but so far have worked around would be these:
join: m in assoc(a, :my_assoc)Ecto.assoc(account, :my_assoc)Ecto.build_assoc(account, :my_assoc)


















