Doc Type Creation with Script etc and not from Doctype UI

One of my client have certain modules ( Mysql Tables) can be used as doc types as it is. There are large number of fields and around 100 doc types . I request experts to point how these data structure can be converted to different doc types.

Thanks in Advance

if detailed requirements with sample data can be provided, there are chances others can help.

Thanks , I could achieved creating/modifying json files directly in custom app folder and apply them by installing/migrating sites . If any other better method to achieve it , Please share ,