This commit is contained in:
2025-12-11 10:30:57 +03:30
parent 9ad229fc16
commit 4ea89a1cfc
@@ -83,4 +83,17 @@ export class Restaurant extends BaseEntity {
// --- روش‌های ارسال --- // --- روش‌های ارسال ---
@OneToMany(() => Delivery, delivery => delivery.restaurant) @OneToMany(() => Delivery, delivery => delivery.restaurant)
deliveries = new Collection<Delivery>(this); deliveries = new Collection<Delivery>(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;
};
} }