Chris Bitoy
05/13/2022, 4:00 PMUser model with enum roles:
1. Admin
2. siteUser
3. Moderator
If I want one siteUser to be able to select and add (multiple) Moderators as their favs, I could do a one-many relationship, but because they are both in the ‘User model’ it’s a little challenging - How can I implement this logic in my prisma.schema file?Ruben Amendoeira
05/13/2022, 4:20 PMit’s a little challengingwhat's the problem with declaring a pivot table in the prisma.schema?
Chris Tsongas
05/13/2022, 4:34 PMChris Bitoy
05/13/2022, 4:43 PM