updated space update

This commit is contained in:
hannathkadher
2024-12-25 10:52:48 +04:00
parent 2e46176fd5
commit a74a0db26e
13 changed files with 331 additions and 168 deletions

View File

@ -103,8 +103,9 @@ export class SpaceEntity extends AbstractEntity<SpaceDto> {
@OneToMany(() => SceneEntity, (scene) => scene.space)
scenes: SceneEntity[];
@ManyToOne(() => SpaceModelEntity, { nullable: true })
@JoinColumn({ name: 'space_model_uuid' })
@ManyToOne(() => SpaceModelEntity, (spaceModel) => spaceModel.spaces, {
nullable: true,
})
spaceModel?: SpaceModelEntity;
@OneToMany(