Device Related API changes are done

This commit is contained in:
VirajBrainvire
2024-04-23 16:24:58 +05:30
parent 501b9c6768
commit d61a1b92e7
3 changed files with 115 additions and 18 deletions

View File

@ -14,6 +14,18 @@ export class GroupDeviceEntity extends AbstractEntity<GroupDeviceDto> {
})
public uuid: string;
@Column({
type: 'string',
nullable: false,
})
deviceUuid: string;
@Column({
type: 'string',
nullable: false,
})
groupUuid: string;
@ManyToOne(() => DeviceEntity, (device) => device.userGroupDevices, {
nullable: false,
})