Awesome
enter
A CLI for generating ER (entity-relationship) diagrams for Ent schema using mermaid.js.
Install
go get -u github.com/a8m/enter
Example
enter
Pass a custom schema path (defaults to ent/schema
):
enter ./pkg/ent/schema
Open er.html
in web browser to view the diagram: