feat(user): add ownedProducts relation to User model
This commit is contained in:
@@ -18,6 +18,7 @@ model User {
|
|||||||
userProducts UserProduct[]
|
userProducts UserProduct[]
|
||||||
ownedRecipes Recipe[] @relation("RecipeOwner")
|
ownedRecipes Recipe[] @relation("RecipeOwner")
|
||||||
sharedRecipes RecipeShare[]
|
sharedRecipes RecipeShare[]
|
||||||
|
ownedProducts Product[]
|
||||||
}
|
}
|
||||||
|
|
||||||
model Product {
|
model Product {
|
||||||
|
|||||||
Reference in New Issue
Block a user