types of 2 diabetes develop when the body becomes resistant to insulin or when the pancreas is unable to produce enough insulin.