Polymorphic models

I asked a similar question a while back: Composability of structs generated by Ecto Schemas

Maybe the replies there will be helpful.