Getting seemingly incorrect relation error
Shouldnt this be sufficient for relation names? If not, i dont see how i could even add one? my schema was working with prisma so i dont think i need to add another FK
4 Replies
I guess it should be enough to only add one relationName the way you have it
I think that drizzle just shorcuts to an error as soon as it sees several relatiions with a lower number of relation names
You can just add the relation name to the other relation just to satisfy drizzle
how would i do that without an additional foreign key
productSet: one(productSets)
in order to add a relation name i also need fields
and references
Just the opposite to the other side of the relation?
I not completely sure, but it seems to me that that should work
yeah that should work actually
ty