import { IsOptional, IsString, IsUUID } from 'class-validator';

export class RegisterDeviceDto {
  @IsString()
  imei!: string;

  @IsOptional()
  @IsString()
  name?: string;

  @IsOptional()
  @IsUUID()
  vehicleId?: string;
}

export class UpdateDeviceDto {
  @IsOptional()
  @IsString()
  name?: string;

  @IsOptional()
  @IsUUID()
  vehicleId?: string | null;
}
