Remove useless indexes (#12422)

As discussed with @charlesBochet - those indexes don't add any value
This commit is contained in:
Félix Malfait
2025-06-03 10:03:19 +02:00
committed by GitHub
parent 8c2da395bb
commit e1395b00e3
4 changed files with 0 additions and 18 deletions

View File

@ -38,7 +38,6 @@ registerEnumType(PermissionsOnAllObjectRecords, {
'userId',
'workspaceId',
])
@Index('IDX_USER_WORKSPACE_ID_DELETED_AT', ['id', 'deletedAt'])
@Index('IDX_USER_WORKSPACE_USER_ID', ['userId'])
@Index('IDX_USER_WORKSPACE_WORKSPACE_ID', ['workspaceId'])
export class UserWorkspace {

View File

@ -34,7 +34,6 @@ registerEnumType(OnboardingStatus, {
unique: true,
where: '"deletedAt" IS NULL',
})
@Index('IDX_USER_ID_DELETED_AT', ['id', 'deletedAt'])
export class User {
@IDField(() => UUIDScalarType)
@PrimaryGeneratedColumn('uuid')

View File

@ -8,7 +8,6 @@ import {
CreateDateColumn,
DeleteDateColumn,
Entity,
Index,
OneToMany,
PrimaryGeneratedColumn,
Relation,
@ -35,7 +34,6 @@ registerEnumType(WorkspaceActivationStatus, {
)
@Entity({ name: 'workspace', schema: 'core' })
@ObjectType()
@Index('IDX_WORKSPACE_ID_DELETED_AT', ['id', 'deletedAt'])
export class Workspace {
// Fields
@IDField(() => UUIDScalarType)