Install the plugin From Menu > Plugins > Manage Plugings or press Command + L.
After that, you can go to your database, choose the tables you want to generate the diagram for and right-click.
You'll see the Generate diagram > Generate diagram option.

