Postgres tables with same name but different schema

I have three users tables, each in different postgres schema. They have 3 columns in common: email, createdAt and updatedAt. When I try to make a relational query where I fetch a token with the user relation, the type of the user contains just those 3 columns, instead of all columns of that specific users table (image attached). Seems like it is an intersection of the types of those 3 users. Seems like the problem is that a relation is defined as:
Relations<"users", {
...
}>
Relations<"users", {
...
}>
meaning that a relation does not take into consideration the schema. Is there a way to get around this?
No description
2 Replies
Angelelz
Angelelz4mo ago
I might be wrong, but I don't believe relations currently respect schemas I know they will fix it in RQB v2
UrosHCS
UrosHCSOP4mo ago
Yeah, seems like that is the case. Thanks for the info about RQB v2!

Did you find this page helpful?