Pain management after baby

Hello everyone, I'm close to having my baby and my first delivery was very rough and I was in a lot of main after. I'm so nervous about this time. What is the regular routine for pain after you go home? Ibuprofen didn't cut it last time and I want my time after having baby when I come home to be peaceful, not like last time. Do most Dr prescribe medicine? 😬😬😬😣