1:1 disambiguating relations on parent
Hi, i am starting a new project in drizzle and in the docs, it doesn't have an 1:1 example with disambiguating relations. I just want to make sure i do it correctly. i have 3 tables. users and installers and dealers. the last 2 have a reference to primary_admin which references user. What is the correct way to define the 1:1 realtion on the parent. based on docs it looks like just include relation name but IDE is happy when i include field, references, and relationName. The problem is I dont have a field in my users table to refence (i know i have dealer_id commented out but its different than what im doing with this). Any help will be appreciated. Thanks!
0 Replies