From c03409da7893fa0c8002248ac4b5e3ab63a09ae2 Mon Sep 17 00:00:00 2001
From: Mahad <56235065+Mahad-lab@users.noreply.github.com>
Date: Tue, 10 Dec 2024 01:05:13 +0500
Subject: [PATCH] update architecture image to markdown

---
 README.md | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 675cca4..18d8f93 100644
--- a/README.md
+++ b/README.md
@@ -92,7 +92,33 @@ render_er("sqlite:///relative/path/to/db.db", 'erd_from_sqlite.png')
 
 ## Architecture
 
-![Architecture schema](https://raw.githubusercontent.com/eralchemy/eralchemy/main/docs/_static/eralchemy_architecture.png "Architecture schema")
+```mermaid
+
+graph LR
+    subgraph Inputs
+        A[Markdown representation]
+        B[SQLAlchemy Schema]
+        C[Existing database]
+        D[Other ORM ?]
+    end
+
+    E[Intermediary representation]
+
+    subgraph Outputs
+        F[Markdown representation]
+        G[Graphviz code]
+        H[Drawing]
+    end
+
+    A --> E
+    B --> E
+    C --> E
+    D --> E
+    E --> F
+    E --> G
+    E --> H
+
+```
 
 Thanks to it's modular architecture, it can be connected to other ORMs/ODMs/OGMs/O\*Ms.
 
-- 
GitLab