Generate erd diagrams for postgres
npm install postgerd
npm install --save-dev postgerd
`
Also make sure you have postgres connection environment variables set (that is, either DATABASE_URL or PGUSER,PGPASSWORD,PGHOST, and PGDATABASE).
To output an svg:
`
npx postgerd -o myOutput.svg
`
To restrict it to a single schema in the database
`
npx postgerd -o myOutput.svg --schema my_schema
`
To output a plantuml file:
`
npx postgerd -o myOutput.plantuml --plantuml
`
To output a nomnoml file:
`
npx postgerd -o myOutput.nomnoml --nomnoml
``