up
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user