Get All Fields of a Doctype and their Data Type

How can I get all fields of a Doctype and their data type e.g. string, int, date…etc