feat: 积分商城-供应商
This commit is contained in:
@@ -159,6 +159,37 @@ model SupplierOrderSub {
|
||||
@@map("supplier_order_sub")
|
||||
}
|
||||
|
||||
model SupplierReconciliationOrder {
|
||||
id Int @id @default(autoincrement())
|
||||
supplierId String
|
||||
orderId String
|
||||
mainOrderId String?
|
||||
userId String?
|
||||
reconciliationStatus Int @default(0)
|
||||
diffType Int?
|
||||
diffReason String? @db.Text
|
||||
platformTotalPrice Decimal? @db.Decimal(12, 2)
|
||||
platformCashAmount Decimal? @db.Decimal(12, 2)
|
||||
platformPointsPrice Decimal? @db.Decimal(12, 2)
|
||||
platformRefundPrice Decimal? @db.Decimal(12, 2)
|
||||
supplierTotalPrice Decimal? @db.Decimal(12, 2)
|
||||
supplierCashAmount Decimal? @db.Decimal(12, 2)
|
||||
supplierPointsPrice Decimal? @db.Decimal(12, 2)
|
||||
supplierRefundPrice Decimal? @db.Decimal(12, 2)
|
||||
reconciliationBatchNo String?
|
||||
reconciliationTime DateTime?
|
||||
resultPayload Json?
|
||||
createAt DateTime @default(now())
|
||||
updateAt DateTime @updatedAt
|
||||
deleted Int @default(0)
|
||||
|
||||
@@unique([supplierId, orderId])
|
||||
@@index([supplierId, reconciliationStatus])
|
||||
@@index([reconciliationBatchNo])
|
||||
@@index([mainOrderId])
|
||||
@@map("supplier_reconciliation_order")
|
||||
}
|
||||
|
||||
model SupplierOrderProduct {
|
||||
id Int @id @default(autoincrement())
|
||||
subOrderId String
|
||||
|
||||
Reference in New Issue
Block a user