samchon / prisma-markdown

Markdown generator of Prisma, including ERD and descriptions
MIT License
393 stars 18 forks source link

Optional cardinality in the 1 side. #22

Closed samchon closed 6 months ago

samchon commented 6 months ago
erDiagram
"one" |o--|{ "many" : special

When one-to-many relationship is optional in the one side, prisma-markdown could not express it in the diagram. Also, if one side is optional, but many side is mandatory, prisma-markdown also could not express it exactly, either.

This PR fixes the bug, so that one side optional cardinality can be exactly represented.