feat: add document list to product data
This commit is contained in:
parent
c8b8b58484
commit
a811c17bde
2 changed files with 28 additions and 1 deletions
|
|
@ -1036,6 +1036,14 @@ model ProductGroup {
|
|||
product Product[]
|
||||
}
|
||||
|
||||
model ProductDocument {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
|
||||
product Product? @relation(fields: [productId], references: [id])
|
||||
productId String?
|
||||
}
|
||||
|
||||
model Product {
|
||||
id String @id @default(cuid())
|
||||
|
||||
|
|
@ -1059,6 +1067,8 @@ model Product {
|
|||
remark String?
|
||||
selectedImage String?
|
||||
|
||||
document ProductDocument[]
|
||||
|
||||
productGroup ProductGroup @relation(fields: [productGroupId], references: [id], onDelete: Cascade)
|
||||
productGroupId String
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue