remove x & y from space, add validation on space naming

This commit is contained in:
Mhd Zayd Skaff
2025-07-14 16:03:48 +03:00
parent a9cb1b6704
commit 2c3b985594
4 changed files with 36 additions and 32 deletions
@@ -75,13 +75,6 @@ export class SpaceEntity extends AbstractEntity<SpaceDto> {
})
subspaces?: SubspaceEntity[];
// Position columns
@Column({ type: 'float', nullable: false, default: 0 })
public x: number; // X coordinate for position
@Column({ type: 'float', nullable: false, default: 0 })
public y: number; // Y coordinate for position
@OneToMany(
() => DeviceEntity,
(devicesSpaceEntity) => devicesSpaceEntity.spaceDevice,