This commit is contained in:
2025-12-06 12:22:46 +03:30
parent fafb54818d
commit 7a5b181af2
2 changed files with 14 additions and 1 deletions
@@ -50,6 +50,19 @@ export class Order extends BaseEntity {
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
couponDiscount: number = 0;
@Property({ type: 'json', nullable: true })
couponDetail: {
couponId: string;
couponName: string;
couponCode: string;
type: 'PERCENTAGE' | 'FIXED' | 'DELIVERY' | 'ITEM';
value: number;
maxDiscount?: number;
calculatedDiscount: number;
ruleVersion?: string;
} | null = null;
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
itemsDiscount: number = 0;
+1 -1
View File
@@ -41,6 +41,7 @@ export class FoodsSeeder {
rate: 0,
inPlaceServe: false,
pickupServe: false,
images: foodData.images,
});
em.persist(food);
@@ -50,4 +51,3 @@ export class FoodsSeeder {
await em.flush();
}
}