Draw once. Progressively refine.
A desktop-first visual database design environment for moving from Conceptual ERD → Relational Schema → Physical Design → SQL → Data.
A working single-page Chen Conceptual ERD editor: entities, attributes,
relationships, cardinality/participation, Explorer/Properties, undo/redo,
and versioned .erdx save/load. Advanced conceptual semantics and downstream
Schema, Physical, SQL, and Data workspaces are still planned.
Build with CMake 3.21+, C++20, and Qt 6.9+:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build --parallel
ctest --test-dir build --output-on-failure
./build/erdflow --exampleRead the implemented features and remaining work, development guide, and project format. The product vision and artwork below include future capabilities.
ERDFlow is being designed as a professional, cross-platform desktop application for understanding, designing, refining, and transforming database models.
It follows one connected workflow:
- Conceptual ERD — understand the business
- Relational Schema — structure the data
- Physical Design — optimize implementation details
- SQL — generate the code
- Data — explore and validate data
The core idea is simple:
Draw once. Progressively refine.
Instead of redrawing the same project at every stage, ERDFlow keeps the stages connected as different representations of the same project.
ERDFlow is being built to combine:
- Chen conceptual modeling
- Correct M:M modeling
- One conceptual model, clean for learning and complete for engineering
- Deterministic downstream conversion
- Safe schema refinement
- Structured SQL generation
- Live Data Grid
- Cross-platform desktop experience
- Future-ready architecture for AI, plugins, and ecosystem integration
-
Chen Conceptual Modeling
- entities
- attributes
- relationships
- weak entities
- associative entities
- ISA / generalization-specialization
-
Correct relationship modeling
1:11:MM:1M:M
-
One model, no modes
- learn with a clean conceptual view
- open the "For the schema" section for the engineering fields
- the model is the same either way, and nothing is hidden from conversion
-
Safe downstream refinement
- generated models stay reviewable
- manual edits are protected
- regeneration is controlled
-
Live Data Grid
- browse
- sort
- filter
- validate
- inspect imported/project data
ERDFlow follows a clean layered architecture with one-way dependencies:
-
Presentation Layer
- Qt / C++ desktop UI
- canvas
- panels
- dialogs
- workspace views
-
Application Layer
- commands
- undo / redo
- task coordination
- review / apply flows
-
Domain Layer
- pure domain models
- validation
- deterministic conversion rules
- mapping and provenance
- baselines
- diff / review logic
-
Infrastructure Layer
.erdxpersistence- import / export
- SQL parsing and generation
- external data sources
-
Stable IDs
- identities survive rename and refinement
-
Deterministic conversion
- same input should produce predictable output
-
Protected manual edits
- downstream user changes must not be destroyed silently
-
Background work
- imports, validation, generation, and export should not freeze the UI
-
Future Rust boundary
- performance-critical parts may later be implemented behind a stable boundary
ERDFlow is designed around safe refinement.
Instead of replacing downstream work blindly, it will follow a review-oriented approach:
Previous Generated Baseline
+
Current User-Edited Model
+
New Candidate
↓
Reviewable Change Proposal
- Product and system quality requirements
- Architecture
- Target domain model
- Scale strategy
- Roadmap
- Architecture review
- Current implementation choices
ERDFlow 0.1.0 is built and tested for Windows x86-64, macOS (Apple silicon and Intel) and Linux x86-64, as installers whose packaging, licence notices and source offer are recorded in the release record. The project is released under the MIT License; it uses Qt under the LGPL version 3 (compliance plan).
Contributions are welcome: bug reports, feature ideas, documentation improvements and code. Read CONTRIBUTING.md to get started, and see SECURITY.md for how to report a vulnerability privately.



