feat: add isPrivate field to Product model and implement private product creation and retrieval
This commit is contained in:
@@ -52,6 +52,7 @@ model Product {
|
||||
userProducts UserProduct[]
|
||||
categoryId Int?
|
||||
categoryRef Category? @relation(fields: [categoryId], references: [id], onDelete: SetNull)
|
||||
isPrivate Boolean @default(false)
|
||||
}
|
||||
|
||||
model Category {
|
||||
|
||||
Reference in New Issue
Block a user