Defining relations of schemas in separate files

Hi, does anyone have any ideas on the following topic?

https://github.com/drizzle-team/drizzle-orm/discussions/2577#discussioncomment-10522926

Here, imagine that you created each table separately with different files. Two tables that are related to each other (for Query) need to call each other for relations. This causes problems. How should relations definitions be made in separate files?

Thanks.
GitHub
How to declare relations if the schema objects are on different files? for example id like to declare a member schema and it has an activeAddress foreign key and then on another file the address sc...
Was this page helpful?