Can a 2 year old have melatonin?

I’m currently sleep deprived ! I’m up at dawn and sleep by afternoon. I’m TIRED. My sons schedule is all fucked up. All the way. So much. I feel like he sleeps better when his dads here. He goes to sleep @9-10 and stays asleep till 5 when is dads here with us sleeping. But, when it’s just me he never wants to go to bed and fights it or goes to sleep early and wakes up @ 1-2 in the morning.. & I don’t want to get up I try to put him back to bed and I can’t he will yell scream CRY! & all I want to do is sleep! By the time he goes to sleep it’s 4-6AM & I’m going to bed as well and he’ll take a short nap and be up! I’m just over it! I’m tired and need sleep and honestly want to give him gummies .. he’s 2Yrs + 7 months old. I’ve been going through this for a little over 2-3 weeks now so I’m desperate! I feel like I neglect him cause how tired I am and I cook less breakfast and give him just snacks 24/7

Thank you! You guys!

Honestly I’ve just been going through it today. I would never rely on medication unless really necessary. I’ve seen the effects of Melatonin from a personal level I honestly just wanted to use it as a one time thing to get a schedule going again. He does go to bed early but, can never just stay asleep he’ll wake up crying .

When his dads here he’ll sleep through the entire night. No problem, I think it’s more of the company of us two together in bed. He loves laying in between us and falls asleep so easily!