From 4ea89a1cfc34bf0f924b977c814522f3f3331dbb Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Thu, 11 Dec 2025 10:30:57 +0330 Subject: [PATCH] rest --- .../restaurants/entities/restaurant.entity.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/modules/restaurants/entities/restaurant.entity.ts b/src/modules/restaurants/entities/restaurant.entity.ts index ab7ce09..1774b26 100644 --- a/src/modules/restaurants/entities/restaurant.entity.ts +++ b/src/modules/restaurants/entities/restaurant.entity.ts @@ -83,4 +83,17 @@ export class Restaurant extends BaseEntity { // --- روش‌های ارسال --- @OneToMany(() => Delivery, delivery => delivery.restaurant) deliveries = new Collection(this); + + @Property({ type: 'json', nullable: true }) + score: { + purchaseAmount: string; + purchaseScore: string; + scoreAmount: string; + scoreCredit: string; + // bonus score + birthdayScore: string; + registerScore: string; + marriageDateScore: string; + referrerScore: string; + }; }