code: func GetLastDeviceActivationForDevEUI(db sqlx.Queryer, devEUI lorawan.EUI64) (DeviceActivation, error) {
  	var da DeviceActivation
  	err := sqlx.Get(db, &da, `
  		select
  			*
  		from device_activation
  		where
  			dev_eui = $1
  		order by
  			id desc
  		limit 1`,
  		devEUI[:],
  	)
  	if err != nil {
  		return da, handlePSQLError(err, "select error")
  	}
  
  	return da, nil
  }
docs: // GetLastDeviceActivationForDevEUI returns the most recent activation
  // for the given DevEUI.