index pager
This commit is contained in:
@@ -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 { BaseEntity } from '../../../common/entities/base.entity';
|
||||||
import { User } from '../../users/entities/user.entity';
|
import { User } from '../../users/entities/user.entity';
|
||||||
import { Restaurant } from '../../restaurants/entities/restaurant.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';
|
import { Admin } from 'src/modules/admin/entities/admin.entity';
|
||||||
|
|
||||||
@Entity({ tableName: 'pagers' })
|
@Entity({ tableName: 'pagers' })
|
||||||
|
@Index({ properties: ['restaurant'] })
|
||||||
export class Pager extends BaseEntity {
|
export class Pager extends BaseEntity {
|
||||||
@Property({ type: 'string' })
|
@Property({ type: 'string' })
|
||||||
cookieId!: string;
|
cookieId!: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user