Doctype Flow in Backend

I created a one doctype in frappe
how it is proceesed in the backend
what is the exact flow of table creation in backend for that Doctype