mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-25 19:37:54 +00:00
space cleanup
This commit is contained in:
@@ -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[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user