added disabled to all space entities

This commit is contained in:
hannathkadher
2024-12-19 10:25:25 +04:00
parent 9063c65e68
commit 23be781d2e
10 changed files with 61 additions and 5 deletions
@@ -28,6 +28,12 @@ export class SpaceModelEntity extends AbstractEntity<SpaceModelDto> {
})
public modelName: string;
@Column({
nullable: false,
default: false,
})
public disabled: boolean;
@ManyToOne(() => ProjectEntity, (project) => project.spaceModels, {
nullable: false,
onDelete: 'CASCADE',
@@ -20,6 +20,12 @@ export class SpaceProductItemModelEntity extends AbstractEntity<SpaceProductItem
)
public spaceProductModel: SpaceProductModelEntity;
@Column({
nullable: false,
default: false,
})
public disabled: boolean;
@OneToMany(
() => SpaceProductItemEntity,
(spaceProductItem) => spaceProductItem.spaceProductItemModel,
@@ -30,6 +30,12 @@ export class SpaceProductModelEntity extends AbstractEntity<SpaceProductModelDto
})
public product: ProductEntity;
@Column({
nullable: false,
default: false,
})
public disabled: boolean;
@OneToMany(
() => SpaceProductItemModelEntity,
(item) => item.spaceProductModel,