verify cash paymnt

This commit is contained in:
2025-12-19 20:58:19 +03:30
parent 2ce7dda168
commit 465810efc2
8 changed files with 70 additions and 40 deletions
@@ -1,6 +1,7 @@
import { Collection, Entity, Index, OneToMany, Property } from '@mikro-orm/core';
import { Collection, Entity, Enum, Index, OneToMany, Property } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
import { Delivery } from '../../delivery/entities/delivery.entity';
import { PlanEnum } from '../interface/plan.interface';
@Entity({ tableName: 'restaurants' })
@Index({ properties: ['isActive'] })
@@ -42,7 +43,6 @@ export class Restaurant extends BaseEntity {
@Property({ nullable: true })
establishedYear?: number;
@Property({ nullable: true })
phone?: string;
@@ -96,4 +96,7 @@ export class Restaurant extends BaseEntity {
marriageDateScore: string;
referrerScore: string;
} | null = null;
@Enum(() => PlanEnum)
plan: PlanEnum = PlanEnum.Base;
}