Mattéo
Explore posts from serversPPrisma
•Created by Mattéo on 6/18/2024 in #help-and-questions
Multiple relation between models
Hello guys, I'm creating a marketplace but I have a problem. I have 2 models:
User
and Post
. I want the user to have the fields posts
(his own posts) and favoritePosts
(the posts he liked).
I made this but it doesn't work:
Can you help me please ?6 replies