This commit is contained in:
2026-02-26 10:07:05 +03:30
parent c8ff614aaf
commit c608a8e159
3 changed files with 31 additions and 20 deletions
@@ -11,19 +11,19 @@ export class Delivery extends BaseEntity {
@ManyToOne(() => Restaurant)
restaurant!: Restaurant;
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
@Property({ type: 'number', default: 0 })
deliveryFee: number = 0;
@Enum(() => DeliveryFeeTypeEnum)
deliveryFeeType: DeliveryFeeTypeEnum = DeliveryFeeTypeEnum.FIXED;
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
@Property({ type: 'number', default: 0 })
perKilometerFee: number | null = null;
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
@Property({ type: 'number', default: 0 })
distanceBasedMinCost: number | null = null;
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
@Property({ type: 'number', default: 0 })
minOrderPrice: number = 0;
@Property({ nullable: true })