Any try Melatonin as a preventative for migraines?

I wonder if you can use melatonin with Amitriptyline and Topamax. I’ve been having problems with waking up in the middle of the night and having mini spins. Maybe this could help!