Ecto Schema tables for multiple schemas

Hey @abhir2020 if what you’re asking is if you can use the same ecto Schema module across different postgres schemas then sure, that’s what the prefix option is for. eg:

user_from_schema1 = User |> where(foo: ^value) |> Repo.one!(prefix: "schema_1")
user_from_schema2 = User |> where(foo: ^value) |> Repo.one!(prefix: "schema_2")