skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.66k stars 208 forks source link

[feature request] Support association types for ER model #186

Closed j796160836 closed 1 year ago

j796160836 commented 1 year ago

Thanks for this awesome project! I use it to draw use case diagram and Entity-relationship model (ER model). I found that it seems lack one to one, one to many and many to many association types. Like this ER diagram:

68747470733a2f2f766572746162656c6f2e636f6d2f626c6f672f766572746162656c6f2d746970732d676f6f642d65722d6469616772616d2d6c61796f75742f312e706e67

I hope it can support. Thanks again.

j796160836 commented 1 year ago

Here is some workaround to draw ER diagram (ERDs). Use text after association types. Like this:

[ Order | 
🔑 OrderID : varchar(20) <PK>;
CompanyName : varchar(20);
CreateTime : timestamp ]

[ OrderDetail |
🗝️ OrderID : varchar(20) <FK>;
ItemName : varchar(20) ;
Quantity : Int ;
Price : Int ]

[ Order ] - 1...n [ OrderDetail ]

nomnoml

skanaar commented 1 year ago

Please see #185

I would like to implement ER diagrams. Just hard to find the time :)

skanaar commented 1 year ago

Closed as duplicate of #185