This commit is contained in:
Bivekich
2025-07-30 20:24:41 +03:00
parent 593ae16e1e
commit 4147d85b36
7 changed files with 35 additions and 8 deletions

View File

@ -473,7 +473,7 @@ model SupplyOrder {
totalAmount Decimal @db.Decimal(12, 2)
totalItems Int
fulfillmentCenterId String?
logisticsPartnerId String?
logisticsPartnerId String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
organizationId String
@ -481,7 +481,7 @@ model SupplyOrder {
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
partner Organization @relation("SupplyOrderPartner", fields: [partnerId], references: [id])
fulfillmentCenter Organization? @relation("SupplyOrderFulfillmentCenter", fields: [fulfillmentCenterId], references: [id])
logisticsPartner Organization? @relation("SupplyOrderLogistics", fields: [logisticsPartnerId], references: [id])
logisticsPartner Organization @relation("SupplyOrderLogistics", fields: [logisticsPartnerId], references: [id])
@@map("supply_orders")
}