mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-25 00:27:55 +00:00
cleaned space entities
This commit is contained in:
@@ -3,7 +3,7 @@ import { ProductDto } from '../dtos';
|
||||
import { AbstractEntity } from '../../abstract/entities/abstract.entity';
|
||||
import { DeviceEntity } from '../../device/entities';
|
||||
import { TagModel } from '../../space-model';
|
||||
|
||||
import { TagEntity } from '../../space/entities/tag.entity';
|
||||
@Entity({ name: 'product' })
|
||||
export class ProductEntity extends AbstractEntity<ProductDto> {
|
||||
@Column({
|
||||
@@ -30,6 +30,9 @@ export class ProductEntity extends AbstractEntity<ProductDto> {
|
||||
@OneToMany(() => TagModel, (tag) => tag.product)
|
||||
tagModels: TagModel[];
|
||||
|
||||
@OneToMany(() => TagEntity, (tag) => tag.product)
|
||||
tags: TagEntity[];
|
||||
|
||||
@OneToMany(
|
||||
() => DeviceEntity,
|
||||
(devicesProductEntity) => devicesProductEntity.productDevice,
|
||||
|
||||
Reference in New Issue
Block a user