Is there a way to reference multiple fields in a many to one relation?
I have this schema
I want
users.privateChats
to be a complete list of chats including ones where privateChats.userId
and privateChats.chatPartnerId
are the users id, I know for this particular example I should probably create a different data model but in my real example (which is over 100 lines so I won't share it) it's not really possible, is there any way to achieve this?0 Replies