2026-04-12 22:47:56 +06:00
|
|
|
enum STATUS {
|
|
|
|
|
INITIATED
|
|
|
|
|
CONFIRMED
|
|
|
|
|
ONGOING
|
|
|
|
|
DELIVERED
|
|
|
|
|
CANCELLED
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum PAYMENT_TYPE {
|
|
|
|
|
COD
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
model Order {
|
|
|
|
|
id String @id @default(uuid())
|
|
|
|
|
shopAccountId String
|
|
|
|
|
account Account @relation(fields: [shopAccountId], references: [id], onDelete: Cascade)
|
|
|
|
|
productPrice Int
|
|
|
|
|
productQuantity Int
|
|
|
|
|
productName String
|
|
|
|
|
status STATUS
|
|
|
|
|
customerName String
|
|
|
|
|
customerPhone String
|
2026-04-13 00:13:52 +06:00
|
|
|
customerEmail String?
|
2026-04-12 22:47:56 +06:00
|
|
|
customerAddress String
|
2026-04-13 00:13:52 +06:00
|
|
|
customerNote String?
|
2026-04-12 22:47:56 +06:00
|
|
|
paymentType PAYMENT_TYPE
|
|
|
|
|
|
|
|
|
|
createdAt DateTime @default(now())
|
|
|
|
|
updatedAt DateTime @updatedAt
|
|
|
|
|
}
|