laxels
laxels
DTDrizzle Team
Created by laxels on 1/28/2024 in #help
TypeScript error when specifying `relationName` in a one-to-one relation
you can use userId as the field and referralCode as the reference
Duh, I didn't think this was possible since the FK is in referralCode instead of user, but it makes sense given that relations and FKs are completely separate. This works perfectly. Thank you!
5 replies