> I have a situation where I have 2 databases say db1 and db2. In db2, I have tables that have relationships (ForeignKey, ManyToOne) with few tables in db1. How do I express this in Elixir/SQLAlchemy.
I doubt that. No database I'm aware of can have that. Of course you can refer to IDs of the other DB, but there is no real Foreign-key or many-to-one there.
What you can do is of course you can use a simple property that queries and delivers an object based on the stored ID in one DB from the other.
Diez