db optimize

This commit is contained in:
2026-04-07 16:59:50 +03:30
parent 87d0ea3792
commit 61ecfcf329
8 changed files with 7 additions and 12 deletions
@@ -1,8 +1,9 @@
import { Entity, Property, ManyToOne } from '@mikro-orm/core';
import { Entity, Property, ManyToOne, Index } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
import { User } from './user.entity';
@Entity({ tableName: 'user_addresses' })
@Index({ properties: ['user'] })
export class UserAddress extends BaseEntity {
@ManyToOne(() => User)
user!: User;