FICILCOM Inc. LogoFICILCOM Inc.
  • Company
  • Company Overview
  • Mission · Vision · Values
  • Guidelines
  • Services
  • NeX-Ray
  • Xtrategy
  • Trial Job Change
  • Tsurugi
  • Recruit
  • Culture
  • Benefits
  • Process
  • FAQ
  • Open Positions
Contact
  1. Home
  2. Blog
  3. Marketing DX
  4. UML vs. ERD: Class, Sequence, and ER Diagram Examples

UML vs. ERD: Class, Sequence, and ER Diagram Examples

クラス同士の関係、処理の順序、データのつながりを表す三種類の図 / Three panels depict a class relationship, a sequence of messages, and related data tables.

Published: 12/02/2026

Last Updated: 12/02/2026

Category: Marketing DX

Authors: Shusaku Yosa

Ready to put this into practice?

Start Xtrategy for free→

1-minute signup, free, cancel anytime

UML, or Unified Modeling Language, describes a system’s structure and behavior. A UML class diagram shows elements and their relationships. A sequence diagram shows how participants exchange messages over time. An entity–relationship diagram (ERD) shows the data a system stores and how records relate. Choose the diagram that answers the question you need to resolve. OMG’s UML 2.5.1 specification

All three examples below use one fictional feature. A requester submits a budget request, and an assigned approver reviews it.

Which diagram should you use?

Question to answer

Diagram

Example question

What are the main concepts, responsibilities, and relationships?

UML class diagram

How does a request relate to its line items?

What happens in what order, including branches?

UML sequence diagram

At what point does the service check approval permissions?

What data do we store, and how do the records connect?

ERD

Which key links a line item to its request?

UML also includes use case diagrams for actors and goals and activity diagrams for process flows and decisions. A swimlane diagram can help when the focus is on how teams hand off work. How to draw a swimlane diagram

Draw a class diagram for requests and line items

Put each class name in a box. Add attributes and operations where they help explain the class. Connect related classes with a line and show the multiplicity at each end. Multiplicity describes how many instances can be associated with one instance at the other end. Here, a submitted request has one or more line items, and each line item belongs to one request.

 

Start by asking what each element knows, what it does, and what it relates to. If a draft request can contain no line items, scope the diagram to submitted requests or record the draft rule alongside it.

Draw a sequence diagram for the approval flow

Arrange participants horizontally and place each message in order from top to bottom. In this example, the assigned approver can approve a pending request. Include the service response so the team can review what the screen does on both success and failure.

 

If two actions can run concurrently, make the update conditional on the request still being pending and the approver still being assigned. Return an outcome the screen can show if either condition changes before the update. Start with the success path, then add branches for missing permissions, requests already handled, and failures as needed.

Draw an ERD for the stored records

In a database ERD, each box represents an entity and can list its columns and keys. A primary key (PK) uniquely identifies a row. A foreign key (FK) references a row in another table in this example. A budget request is identified by request_id, and each line item uses its own request_id column to reference the parent. PostgreSQL documentation on constraints

 

This diagram covers submitted requests. A required foreign key with a reference constraint connects each line item to an existing request. Enforce the separate rule that a submitted request must have at least one line item when the request is submitted.

Copyable diagram planning template

Get the editable Mermaid examples for all three diagrams. Paste the code into a Mermaid editor and change the names and relationships to match your feature.

Field

Your notes

Question the diagram should answer


Scope and assumptions


Classes, attributes, operations, and multiplicity


Sequence participants, messages, and branches


ERD entities, keys, and cardinality


Rules for exceptions


If you use several diagrams, check that they use the same terminology and scope. Agree on what “submitted,” “pending,” and “approved” mean before reviewing the diagrams together. How to document requirements

 

 

 

 

Table of Contents

  1. Which diagram should you use?
  2. Draw a class diagram for requests and line items
  3. Draw a sequence diagram for the approval flow
  4. Draw an ERD for the stored records
  5. Copyable diagram planning template

 

Company

  • Company
  • Company overview
  • Mission · Vision · Values
  • Guidelines

Services

  • Services

Blog

  • Blog
  • Categories
  • Authors

Estimate

  • Estimate simulator

Careers

  • Careers
  • Culture & Work Style
  • Benefits & Systems
  • Hiring Process
  • FAQ
  • Open Positions

Policies

  • Privacy Policy
  • Anti-Social Policy
  • Information Security Policy

Contact

  • Contact

Social

  • X
  • LinkedIn
  • Facebook
  • Pinterest
© 2026 Ficilcom Inc.

Related Articles

マップ作成・施策管理・Web接客を表す3つの図 / Three objects representing journey mapping, initiative planning, and web engagement
Marketing DX12/01/2026

Customer Journey Tools Compared by What You Need to Do

Compare spreadsheets, Miro, UXPressia, Xtrategy, and KARTE Web for journey mapping, initiative and budget management, an...

Shusaku YosaRead more
要件定義書テンプレート|Web・システム発注で使えるサンプルと書き方
Marketing DX08/03/2026

Requirements Document Template: Examples, Acceptance Criteria, and Change Log

Connect requirements to acceptance criteria, tests, owners and evidence. Fictional examples cover permissions, performan...

Shusaku YosaRead more
サイトリニューアルの進め方|要件定義から公開までの工程とチェックリスト
Marketing DX07/27/2026

Website Redesign Planning: Phases, a URL Migration Map, and Launch Checks

Plan a website redesign with scope decisions, phase gates, a filled URL migration map, launch tests and recovery conditi...

Shusaku YosaRead more