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