How were the first mammals created?

Now when but how.

Updates
6 mo
What was the point where the beings went from reproduction of laying eggs to sexual reproduction?
There can't be anything in between.
So the parent laid eggs and then the babies later had sex and had babies.
How were the first mammals created?
Post Opinion