mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 21:37:54 +00:00
added disabled to all space entities
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user