feat: add REQ0187 frontend party-order CRUD functionality and backend API endpoints

This commit is contained in:
louiscklaw
2025-06-15 22:27:44 +08:00
parent 53b112e488
commit dfc9873815
24 changed files with 780 additions and 5 deletions

View File

@@ -1230,3 +1230,30 @@ model AccessLog {
@@index([timestamp])
@@index([userId])
}
model PartyOrderItem {
id String @id @default(uuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
//
taxes Float
status String
shipping Float
discount Float
subtotal Float
orderNumber String
totalAmount Float
totalQuantity Float
history Json
payment Json
customer Json
delivery Json
items Json[]
shippingAddress Json
// OrderProductItem OrderProductItem[]
// OrderHistory OrderHistory[]
// OrderDelivery OrderDelivery[]
// OrderCustomer OrderCustomer[]
// OrderPayment OrderPayment[]
// OrderShippingAddress OrderShippingAddress[]
}