Allow one order with items from multiple companies and shared cash settlement.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -308,11 +308,14 @@ model OrderItem {
|
||||
unitDiscount Float? @default(0)
|
||||
lineTotal Float?
|
||||
notes String?
|
||||
companyId String
|
||||
companyName String
|
||||
|
||||
order Order @relation(fields: [orderId], references: [id], onDelete: Cascade)
|
||||
product Product? @relation(fields: [productId], references: [id], onDelete: SetNull)
|
||||
|
||||
@@index([orderId])
|
||||
@@index([companyId])
|
||||
}
|
||||
|
||||
model OrderStatusHistory {
|
||||
|
||||
Reference in New Issue
Block a user