updated subspace model covering all edge cases

This commit is contained in:
hannathkadher
2025-02-24 18:41:32 +04:00
parent d13da50fd7
commit 4391339e5e
6 changed files with 910 additions and 488 deletions

View File

@ -31,7 +31,7 @@ export class SpaceModelProductAllocationEntity extends AbstractEntity<SpaceModel
@ManyToOne(() => ProductEntity, { nullable: false, onDelete: 'CASCADE' })
public product: ProductEntity;
@ManyToMany(() => NewTagEntity)
@ManyToMany(() => NewTagEntity, { cascade: true, onDelete: 'CASCADE' })
@JoinTable({ name: 'space_model_product_tags' })
public tags: NewTagEntity[];