Sleep meds

Has anyone taken melatonin while pregnant to help with sleeping? I was taking B6 and Unisom and have found that Unisom is actually making me throw up. I have a hard time sleeping though so I’m wondering what else I can take.