I wrote this code to make a very simple ER diagram reverse engineer using dbdiagrams.io , which is a great tool. The following video shows a very simple tutorial. You can see the source code here.

To access the repo and collaborate >> https://github.com/sqlinsights/dbdiagrams