space cleanup

This commit is contained in:
hannathkadher
2024-12-24 08:12:56 +04:00
parent fef44b3c4f
commit 97b53bf417
32 changed files with 12 additions and 732 deletions
@@ -2,7 +2,6 @@ import { Column, Entity, OneToMany } from 'typeorm';
import { ProductDto } from '../dtos';
import { AbstractEntity } from '../../abstract/entities/abstract.entity';
import { DeviceEntity } from '../../device/entities';
import { SpaceProductEntity } from '../../space/entities/space-product.entity';
import { TagModel } from '../../space-model';
@Entity({ name: 'product' })
@@ -28,9 +27,6 @@ export class ProductEntity extends AbstractEntity<ProductDto> {
})
public prodType: string;
@OneToMany(() => SpaceProductEntity, (spaceProduct) => spaceProduct.product)
spaceProducts: SpaceProductEntity[];
@OneToMany(() => TagModel, (tag) => tag.product)
tagModels: TagModel[];