Does anyone give their children melatonin at night?

How long before bed do you give it to them? I’ve recently started giving about 0.5mg to my 3 and 6 year old. We’ve been having a nightmare with bedtime the past few months and I needed to do something to save my sanity. Plus I feel like it’s better for them to be getting more sleep.

My 6yo only needs it some nights but I feel like my 3yo needs it every night.. it kind of makes me feel bad but if he doesn’t have it he won’t go to bed until like 11pm and if he falls asleep earlier he usually wakes up around 3/4 and doesn’t go back to sleep until 5/6.

Anyways basically what I’m wondering is how many other people use this as a sleep aid for their children/toddlers? Is it okay to use it every night? Will he eventually be able to sleep all night without it?