Skip to content

Commit

Permalink
BC-8401 adding missing indexes to groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Nov 13, 2024
1 parent 3d722f1 commit b84e700
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/server/src/modules/group/entity/group.entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Embedded, Entity, Enum, ManyToOne, Property } from '@mikro-orm/core';
import { Embedded, Entity, Enum, Index, ManyToOne, Property } from '@mikro-orm/core';
import { ExternalSourceEmbeddable } from '@modules/system/entity';
import { BaseEntityWithTimestamps } from '@shared/domain/entity/base.entity';
import { SchoolEntity } from '@shared/domain/entity/school.entity';
Expand Down Expand Up @@ -30,6 +30,7 @@ export interface GroupEntityProps {
}

@Entity({ tableName: 'groups' })
@Index({ properties: ['users', 'organization', 'type'] })
export class GroupEntity extends BaseEntityWithTimestamps {
@Property()
name: string;
Expand Down

0 comments on commit b84e700

Please sign in to comment.