Skip to main content

PostgreSQL C3 Structure

Create a diagram that details the PostgreSQL container, add its five existing databases, and inspect which model components use each one. This lesson covers two ways to create the diagram and leaves it in the exact state needed next.

Full lesson walkthrough in the selected color theme.

Two Ways to Create a Diagram​

From the model's main page, select Create and enter every diagram setting manually: name, description, type, system, and container.

Loading image...
The system and container context are selected manually from the main page

For contextual creation, first open the C1 overview. The number in the system's upper-left corner shows how many diagrams detail it. Select that counter to open the next level of detail.

Loading image...
The system counter opens the C2 diagram that details it

PostgreSQL Container​

On C2, find the container through Search in the menu or by pressing S. The search field filters the current diagram as you type.

Loading image...
Open search from the menu or with the S key

Enter the beginning of the name and select PostgreSQL. The diagram centers the container and opens its properties panel, keeping the element visible as you work.

Loading image...
The results show the PostgreSQL container owned by E-Commerce

Open the Diagrams tab in the properties panel. At this stage, the container deliberately has no C3 diagram, although all underlying model objects remain intact.

Loading image...
No C3 detail diagram has been created for this container yet

Select Create C3 Diagram. The system and container fields are prefilled and locked because this diagram is being created specifically for the selected PostgreSQL container.

Loading image...
E-Commerce and PostgreSQL are filled in automatically

Container Structure​

After saving, the new C3 opens with the PostgreSQL container visible. Its Structure tab lists the databases that belong to it.

Loading image...
Five existing databases can be added without being recreated

Add all five databases with their plus icons. This reuses each component with its existing properties, ownership, and model identity.

Loading image...
OrdersDB, WebDB, CatalogueDB, CommunicationDB, and NotificationSettingsDB are on the diagram

Inspect Dependencies​

Select a database and open Dependencies. The Called from section lists its clients. When a client is absent from the diagram, a plus icon appears beside it.

Loading image...
The order processor appears as a client of the selected database

Each database has its own clients. Moving between databases is a quick way to study their external context without opening the full model catalog.

Loading image...
The notification database has its own set of client services

Result​

The diagram now contains PostgreSQL and its five databases. External clients and relationships remain hidden. The next lesson starts from this exact state and adds the surrounding context through database dependencies.

Loading image...
The container and five databases are ready for external clients

Timeline​

  • 00:00 — Two routes to a new diagram
  • 00:10 — Standard creation form
  • 00:15 — Switching to the contextual route
  • 00:23 — Opening the C1 overview
  • 00:27 — Following the detail counter
  • 00:36 — Finding the container on C2
  • 00:45 — Selecting PostgreSQL and opening its diagrams
  • 01:00 — Creating C3 in context
  • 01:09 — Name and description
  • 01:12 — Saving the diagram
  • 01:19 — Container structure
  • 01:28 — Adding five databases
  • 01:38 — First database dependencies
  • 01:48 — A different client set
  • 01:57 — Notification database dependencies
  • 02:06 — Preparing for the next lesson

Previous lesson: Notification Subsystem C3 Relationships.

Next lesson: PostgreSQL C3 Clients and Relationships.