Skip to content
Zain-OrwaPublic

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

ERDFlow Hero Banner

ERDFlow

Draw once. Progressively refine.

A desktop-first visual database design environment for moving from Conceptual ERD → Relational Schema → Physical Design → SQL → Data.

Status Platform Desktop First License


Current implementation

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 --example

Read the implemented features and remaining work, development guide, and project format. The product vision and artwork below include future capabilities.

Overview

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.


Visual Showcase

ERDFlow Core Workflow


Why ERDFlow?

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

Feature Highlights

ERDFlow Feature Highlights

Planned core capabilities

  • Chen Conceptual Modeling

    • entities
    • attributes
    • relationships
    • weak entities
    • associative entities
    • ISA / generalization-specialization
  • Correct relationship modeling

    • 1:1
    • 1:M
    • M:1
    • M: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

Architecture Overview

ERDFlow Architecture Overview

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

    • .erdx persistence
    • import / export
    • SQL parsing and generation
    • external data sources

Important architectural principles

  • 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

Safe Regeneration Philosophy

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

Documentation

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).

Contributing

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.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages