index pager

This commit is contained in:
2026-04-07 16:36:34 +03:30
parent 0386082d5f
commit b3cc419dd1
+2 -1
View File
@@ -1,4 +1,4 @@
import { Entity, ManyToOne, Property, Enum } from '@mikro-orm/core';
import { Entity, ManyToOne, Property, Enum, Index } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
import { User } from '../../users/entities/user.entity';
import { Restaurant } from '../../restaurants/entities/restaurant.entity';
@@ -6,6 +6,7 @@ import { PagerStatus } from '../interface/pager';
import { Admin } from 'src/modules/admin/entities/admin.entity';
@Entity({ tableName: 'pagers' })
@Index({ properties: ['restaurant'] })
export class Pager extends BaseEntity {
@Property({ type: 'string' })
cookieId!: string;