description

This commit is contained in:
2025-12-07 11:33:37 +03:30
parent 6b7ead553a
commit 14967bec6e
8 changed files with 49 additions and 2 deletions
@@ -74,6 +74,9 @@ export class Order extends BaseEntity {
@Property({ type: 'int', default: 0 })
totalItems: number = 0;
@Property({ type: 'text', nullable: true })
description?: string;
@Enum(() => OrderStatus)
status!: OrderStatus;
+1
View File
@@ -67,6 +67,7 @@ export class OrdersService {
deliveryFee: cart.deliveryFee || 0,
total: cart.total || 0,
totalItems: cart.totalItems || 0,
description: cart.description,
status: OrderStatus.Pending,
paymentStatus: PaymentStatusEnum.Pending,
});