add tag_id

This commit is contained in:
hannathkadher
2025-01-29 14:55:05 +04:00
parent 64a056cf95
commit 1b02f1c86a
2 changed files with 1 additions and 1 deletions

View File

@ -78,6 +78,7 @@ export class DeviceEntity extends AbstractEntity<DeviceDto> {
@OneToOne(() => TagEntity, (tag) => tag.device, {
nullable: true,
})
@JoinColumn({ name: 'tag_id' })
tag: TagEntity;
constructor(partial: Partial<DeviceEntity>) {