disable synchronize on the original join table

This commit is contained in:
mgabor
2024-04-12 08:53:38 +02:00
parent de58cd2ebd
commit d9161af808
4 changed files with 22 additions and 27 deletions
@@ -1,8 +1,10 @@
import { AlbumEntity } from 'src/entities/album.entity';
import { UserEntity } from 'src/entities/user.entity';
import { Column, Entity, ManyToOne, PrimaryColumn } from 'typeorm';
import { Column, Entity, Index, ManyToOne, PrimaryColumn } from 'typeorm';
@Entity('albums_shared_users_users')
@Index('IDX_427c350ad49bd3935a50baab73', ['albums'])
@Index('IDX_f48513bf9bccefd6ff3ad30bd0', ['users'])
export class AlbumPermissionsEntity {
@PrimaryColumn({ type: 'uuid', name: 'albumsId', foreignKeyConstraintName: 'FK_f48513bf9bccefd6ff3ad30bd06' })
@ManyToOne(() => AlbumEntity, { onDelete: 'CASCADE', onUpdate: 'CASCADE', nullable: false })