Closed fuelen closed 2 years ago
Just had the same idea. But there seems to be an additional experimental ERD syntax in mermaid. -> https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram
@cw789 yes, good note. I thought ERD syntax doesn't support fields, because they are not shown on the main page, but seems like I was wrong :)
They do - but there are some limitations.
The
type
andname
values must begin with an alphabetic character and may contain digits, hyphens or underscores. Other than that, there are no restrictions, and there is no implicit set of valid data types.
Anyway, the biggest blocker for this feature is how ERD is rendered in examples by the link above
Seems like rendering is fixed
https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/ https://mermaid-js.github.io/mermaid/#/classDiagram