Generate entity-relationship diagram.
npm install erderd
Generate entity-relationship diagram according to model text
Browser
```
{{ modelsText }}
Node.js
``
let erd = require('erd')
erd({modelsText, outputType})
Use mongoose models to generate erd
models text like below format
`Entities
[Player] {bgcolor: "#d0e0d0"}
*_id [ ObjectId ]
+idid [ String (username), not null , Index]
firstname [ String , not null , Index]
lastname [ String , Index]
+email [ String , not null , Index]
avatar [ String ]
password [ String ]
active [ Boolean ]
coverImage [ String ]
tempuuid [ String ]
tempuuiddate [ Date ]
updated [ Date ]
created [ Date ]
[Post] {bgcolor: "#d0e0d0"}
*_id [ ObjectId ]
player [ String , not null ]
content [ Object , not null ]
photos [ Array
likes [ Array
updated [ Date ]
created [ Date ]
outputType
* png
* pdf
* html