add order item

This commit is contained in:
2026-01-22 11:24:11 +03:30
parent f2d30af119
commit e53c574931
5 changed files with 119 additions and 18 deletions
@@ -26,9 +26,14 @@ export class OrderItem extends BaseEntity {
@Property({ type: 'decimal', precision: 10, scale: 0 })
unitPrice!: number;
@Property({ type: 'decimal', precision: 10, scale: 0 })
subTotal!: number;
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
discount: number = 0;
@Property({ type: 'decimal', precision: 10, scale: 0 })
totalPrice!: number;
total!: number;
@Property({ nullable: true })
description?: string;