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
Defining relations of schemas in separate files · drizzle-team driz...
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...
1 Reply
Halil Han BADEM
Halil Han BADEMOP3mo ago
I went with a different approach. I think this is the best approach: https://github.com/drizzle-team/drizzle-orm/discussions/2577#discussioncomment-10524084
Want results from more Discord servers?
Add your server