PostgreSQL ER diagram: graphics
A PostgreSQL schema with tables, enums, domains, composite types and functions gets busy fast. Color helps readers find their way: one color per business area, or one per object type, so types and functions stand apart from tables. In Luna Modeler graphics for PostgreSQL ER diagrams are set on three levels:
- Project: defaults for the whole project.
- Diagram: settings for one diagram.
- Object: colors for a single table, type or function.
A lower level overrides a higher one. None of these settings change the generated SQL.
Colors and graphics defined on the project level
Project colors help when you work with several PostgreSQL projects, for example production and development. Give each a different background, line or footer color.
Click an empty part of the diagram so that no object is selected, then change the colors in the Graphics section.
If you keep the side panel closed, double click the project name to open the Project form and use its Graphics tab.

Graphics on the diagram level
Click the diagram area to show its properties in the right side panel. Change the background color, the relationship color and the relationship display mode for this diagram.

Graphics on the object level
Select a table, composite type, enum, domain, function or any other object and change its colors in the Graphics section of the right side panel.

You can also double click the object and set the text and background colors on the Graphics tab of its form.
To apply the same look to many objects, copy the format of one and apply it to the others.
