User Guide
Back to Modej

How to use Modej

Modej turns legacy databases and source code into living documentation, navigable diagrams and professional reports. This guide walks you from your first import to the most advanced features.

8DBs supported
34Plus available
5 minfor the first import

Welcome

What Modej does and how it’s organised

Modej takes your database (Firebird, MySQL, PostgreSQL, Oracle, SQL Server, and others) together — optionally — with the source code that uses it, and gives you back:

  • an interactive ER schema with all tables, columns, keys and relationships;
  • a map of which parts of the code use which tables (and how: read, write, modify);
  • automatic documentation generated by artificial intelligence;
  • professional PDF reports ready to hand to a client or colleague.
The main menu is organised into 8 items: Dashboard, Import DB/Code, Schema DB, Analysis, Processes, Code, Plus, Admin. Items with a ▾ arrow are dropdowns grouping related features.

First 5 minutes

The fastest way to see Modej in action
1

Import your database

Go to Import DB/Code, choose "New project", give it a name, select the database type and upload the DDL file (your database’s SQL schema).

2

Explore the ER Schema

Right after the import, click "Schema DB" to see all your tables drawn as a diagram, with relationships already connected automatically.

3

Try AI Analysis

If you’ve also uploaded the source code, go to Analysis ▾ → AI Analysis and let the AI explain what your code does.

4

Generate your first report

Go to Code ▾ → Technical Report and generate a complete PDF in a few clicks — perfect to show a client or keep as documentation.

You’ve already seen the heart of Modej. The following sections go deeper into every feature.

Importing a Database

From Firebird to Oracle: every database server has its own method

Modej reads the DDL - the SQL script describing the database structure (tables, columns, keys, indexes, triggers, stored procedures). You never need a direct connection to your database: the text file with the schema is enough.

1 Server-based databases (Firebird, MySQL, PostgreSQL, SQL Server, Oracle, Sybase, DB2, SQLite)

For these databases you have two options:

If you already have access to your DB with a client (e.g. DBeaver, pgAdmin, SQL Developer), export the schema in SQL format ("structure only", no data) and upload that file directly to Import DB/Code.

Modej provides ready-made .bat scripts that automatically extract the DDL by connecting to your database with the credentials you enter (never saved, used only for local extraction):

DatabaseScriptTool used
Firebird / InterBaseextract_ddl_firebird.batisql -x
MySQL / MariaDBextract_ddl_mysql.batmysqldump --no-data
PostgreSQLextract_ddl_postgres.batpg_dump --schema-only
SQL Serverextract_ddl_mssql.batsqlcmd
Oracleextract_ddl_oracle.batexpdp / sqlplus
Sybase / SAP ASEextract_ddl_sybase.batddlgen
IBM DB2extract_ddl_db2.batdb2look -e -a
SQLiteextract_ddl_sqlite.batsqlite3 .schema

Double-click the right script, enter the server/credentials when prompted, and you'll find the ready-to-upload .sql file in the same folder.

2 Uploading to Modej

1

Go to Import DB/Code

Choose "New project" or select an existing project to add a new version.

2

Select the DB type

Choose the right type from the dropdown - Modej automatically normalises the syntax specific to each database.

3

Upload the .sql file

Drag the file into the dropzone or select it. Modej automatically detects tables, columns, primary keys, foreign keys, triggers, stored procedures, views and indexes.

Automatic versioning: if you re-upload a different DDL for the same database, Modej automatically creates a new version (v1, v2, v3...) keeping the full history. You can compare them in Schema DB ▾ → Version Comparison.

Scripts for Legacy DBs (Access, dBase, Paradox)

File-based databases: one extra step is needed

Access, dBase and Paradox don’t have a text DDL you can export directly — they are file-based, binary databases. For these you need a conversion script that runs on the computer where the database file lives, before uploading it to Modej.

📁 .mdb/.dbf/.db file
→
🖱 Double-click the .bat
→
📄 Generated .sql file
→
⬆ Upload to Modej
Microsoft Access (.mdb / .accdb)

Script: Avvia_Access_Export.bat + Modej_Access_Export.ps1

Requirement: Microsoft Access or Access Runtime installed (free, downloadable from Microsoft if you don’t have full Office).

  1. Double-click Avvia_Access_Export.bat
  2. Select the .mdb or .accdb file when prompted
  3. The script reads the native structure via ADOX and generates the SQL file in the same folder
dBase / FoxPro / Clipper (.dbf)

Script: Avvia_DBase_Export.bat + Modej_DBase_Export.ps1

Requirement: none — the parser is built into the script.

  1. Double-click Avvia_DBase_Export.bat
  2. Select the folder containing the .dbf files (each file is a separate table)
  3. The script reads the binary header of each file and generates a single SQL file with all the tables
Borland Paradox (.db)

Script: Avvia_Paradox_Export.bat + Modej_Paradox_Export.ps1

Requirement: none for Paradox 3-5. For Paradox 7+ install "Microsoft Access Database Engine 2010" (free).

  1. Double-click Avvia_Paradox_Export.bat
  2. Select the folder with the .db files
  3. The script tries ODBC first, then falls back to a binary parser if needed
If PowerShell blocks execution: open PowerShell as Administrator and type Set-ExecutionPolicy -Scope CurrentUser RemoteSigned. The provided .bat files bypass this restriction in most cases anyway.

Importing Source Code

Link your source code to the database you already imported

Uploading your source code too (Delphi, C#, Java, PHP...) lets Modej understand which parts of the application use which tables — the basis for AI Analysis, Code↔DB, Process Map and full Technical Reports.

You can import code only, without first uploading a database: on Import DB/Code you’ll find the "Upload Code Only (no DB)" button at the start.

1 How to generate the map file

The file to upload is a .txt generated by an extraction script that runs at the client site, against the real source code. The expected format is:

file.pas | UnitName | ClassName | SQL_STRING:SELECT * FROM TABLE WHERE...

Each line represents a relationship between a code unit and a database operation.

2 Upload

1

Go to Import DB/Code

If you already have a project, select it; otherwise create a new one.

2

Upload the .txt map file

Modej automatically validates the file: checks it’s text (not binary/ZIP), fixes the encoding if needed, verifies the format.

3

Check the result

You’ll see the count of units, methods and code↔DB relationships found. From here you can go straight to "Code ↔ DB".

The file must be plain text. Modej automatically rejects ZIPs, executables or files with corrupted encoding, showing a clear error instead of importing garbage data.

ER Schema

Your database diagram, always up to date and navigable

Every table becomes a draggable card with all its columns, primary keys (PK) and foreign keys (FK) highlighted. Relationships are drawn automatically: indigo lines for real FKs declared in the database, orange lines for the manual FKs you add.

1 Navigation

  • Drag cards to rearrange the layout — positions save automatically;
  • Double-click a table to open the "Functional Details" panel with columns, triggers, stored procedures, views and indexes;
  • Use the search at the top to jump straight to a table;
  • "FK only" filter to hide tables with no relationships and focus on the core structure;
  • Zoom with the − / + buttons at the bottom right.
The ER Schema automatically inherits the light/dark theme set in the main menu — no separate button to look for.

Colours and Areas

Visually organise tables by functional area

Group tables into coloured "areas" (e.g. Warehouse, Sales, Accounting) by dragging each table onto its area in the left sidebar. These colours show up everywhere: ER Schema, Glossary, Technical Report.

  • Create new areas with a custom name and colour;
  • Filter by "Assigned" / "Unassigned" to quickly complete the classification;
  • Inherit colours from a previous version of the same database, if you’re updating an already classified schema.

Manual FKs

Logical relationships not declared in the database

Many legacy databases don’t declare all relationships at the SQL level — the relationship exists only "in the developers’ heads" or in application code. Manual FKs let you document them explicitly, and they show up in the ER Schema as dashed orange lines.

Select the source table and column, then the target table and column, add an optional note and save.

AI Analysis

Let artificial intelligence explain your code

Upload a ZIP of the source code: Modej analyses it with AI algorithms and generates reports on 4 different fronts, selectable at the start:

General overview: architecture, patterns used, code quality, general improvement suggestions.

Professional security audit: OWASP Top 10 vulnerabilities, SQL injection, severity classification for every issue found, with corrected code ready to copy.

N+1 queries, inefficient loops, blocking operations, missing indexes — with impact estimate and optimised solution.

Refactoring suggestions to modernise legacy code by applying more modern patterns.

Privacy: passwords, API keys and connection strings are automatically masked in your browser before sending — they never leave your computer in the clear. The code is not kept on the servers after the analysis.
The base plan includes 50 analyses a day. With the Unlimited AI Analysis Plus (€49/year) this limit is removed entirely.

Deep Analysis

File-by-file analysis, with automatic classification into processes

Unlike AI Analysis (which gives a general overview), Deep Analysis examines every single file in the project, works out which business process it belongs to (e.g. "Order Management", "Customer Records") and automatically proposes a process map ready to apply.

When it’s done, click "Apply to Processes" to transfer the classification directly into the Process Map, saving the manual work of dragging.

AnalisiDB — Deep Diagnosis Plus

A structural check-up of the schema, not the code

Unlike AI Analysis (which looks at the code), AnalisiDB is deterministic — it doesn’t use AI: it applies fixed rules to keys, foreign keys, data types, naming, indexes and the normalisation level of the imported schema.

  • An overall grade and an OK / Normal / Poor badge for the whole database;
  • every issue found is grouped by table, with severity and a plain-language explanation;
  • a corrective SQL script ready to copy — review and adapt it before running it, don’t fire it blindly at a production database.

Code ↔ DB

The complete matrix: which code touches which table

For every imported code unit you see the list of tables it uses, with the operation type (SELECT, INSERT, UPDATE, DELETE, or "mixed" if it does more than one) and the exact method name. The statistics at the top summarise the overall picture: total relationships, how many SELECT/INSERT/UPDATE/DELETE, tables and units involved.

With the Query Extraction Plus you can export this whole matrix to CSV, JSON or SQL — useful for documentation, audits or migrations.

Process Map

Organise code by business process, not by file

Create processes (e.g. "Invoicing") and sub-processes (e.g. "Issue Invoice"), then drag the still-unassigned code units from the left column into the right sub-process. Alternatively use "Analyse with AI" to have the entire structure proposed automatically based on the unit names.

Remember to click Save after every change — a green toast confirms the save succeeded.

Flow Diagram

The Process Map seen as a diagram, not a list

Once the Process Map is populated, this page automatically generates an SVG diagram with the full hierarchy: processes at the top, sub-processes below them, and the code units assigned to each at the bottom.

📁 Process
→
📂 Sub-process
→
📄 Code unit

Useful for a quick overview, or to export as an image for documentation.

DB Management Plus

Keep track of the versions of your imported databases

See all imported versions for each database, with table count, import date and size. Rename a DB by double-clicking its name, delete outdated versions (if there’s more than one), or jump straight to the ER Schema or Comparison of each version.

Version Comparison Plus

What changed between two imports of the same database

Select a base version and a new version: you’ll see added tables (green), removed (red) and modified (orange) tables in a dual-view panel. Click a modified table to see exactly which columns changed, with the before/after type detail.

History / Changelog Plus

A readable changelog, exportable to Markdown

Similar to Version Comparison, but built for documentation: generates a changelog in "release notes" style with a visual timeline, exportable to .md to insert directly into the project’s Git repository.

Unused Tables Plus

Find the tables no code uses anymore

Compares the database tables with those actually referenced in the imported code. "Unused" tables are likely legacy or obsolete — ideal candidates for cleanup before a migration, grouped by area with a percentage of the total.

Usage Heatmap Plus

Which tables are "hottest" in your system

List ranked from most to least used table, with coloured bars (blue=rare, green=moderate, orange=frequent, red=critical) and badges by operation type. Filter by SELECT/INSERT/UPDATE/DELETE for targeted analysis (e.g. DELETE only for a security audit).

Data Glossary Plus

A business dictionary for your tables

For each table, write (or generate with AI) a description in business language, not technical — useful for anyone who needs to understand the database without being a developer. The "AI generate all" button automatically fills in every table still missing a description. Exportable to PDF.

Query Extraction Plus

Export the Code↔DB matrix to use elsewhere

Download all unit↔table relationships in CSV (for Excel), JSON (for other tools) or SQL (for direct queries). Perfect for technical documentation or to feed external analysis tools.

Full Technical Report Plus

The most complete document Modej can generate

A 20-30 page PDF generated entirely in your browser (no data leaves your computer during generation), ready to hand to a client or archive:

SectionContent
CoverLogo, project/database name, key info
Executive SummaryComplexity score, 6 KPIs, automatic alerts
ER SchemaTables by area, orphan table indicator
Data GlossaryBusiness descriptions by area
Code→DB AnalysisTop 20 heatmap, orphan list
Process MapProcess → sub-process → unit hierarchy
Manual FKsFull relationships table
Technical AppendixEvery table with all columns and types

Complexity Index Plus

A score to measure how complex your system is

Score from 0 to 100 calculated from the number of tables, manual FKs, average columns per table and a penalty for orphan tables above 20%. You also see the trend over time: if you’ve imported multiple versions of the same database, a chart shows whether the system is becoming more or less complex from version to version.

Presentation Mode Plus

Show your work as a professional slideshow

Turns the project data into fullscreen slides: cover, overview with 7 metrics (tables, columns, FKs, triggers, stored procedures, views, indexes), interactive ER schema, one slide per business process with its sub-processes and units, heatmap, and a final slide.

Navigate with the ← → arrow keys, exit with ESC. Perfect for client meetings or live demos.

Plus Marketplace

All the advanced features, in one place

Each Plus is purchased separately and is valid for 12 months from purchase. The catalogue below is read live from the marketplace, so it always matches what you actually find on the Plus page — names, prices and descriptions stay in Italian regardless of this guide’s language, for now.

Analisi

AnalisiDB — Diagnosi Profonda
€89
Scandaglia il database in profondità: chiavi, relazioni, tipi, naming, indici, normalizzazione. Voto complessivo, badge OK/Normale/Male e script SQL pronto per correggere i problemi.

Analisi AI

Analisi AI Illimitata
€49
Rimuove il limite di 10 analisi/giorno. Analizza quanto vuoi, quando vuoi.
Audit Sicurezza Avanzato
€59
Report di sicurezza con classificazione CVSS v3, proof-of-concept e remediation code-ready.
Confronto Versioni Codice
€49
Carica due versioni del codice e ottieni un diff intelligente con analisi AI delle differenze.
Refactoring Guidato AI
€69
L'AI riscrive interi moduli applicando design pattern moderni al tuo codice legacy.
Documentazione Automatica
€59
Genera documentazione tecnica completa del codice in formato Markdown, HTML e PDF.

Codice DB

Heatmap Utilizzo Tabelle
€49
Visualizza quali tabelle sono più usate nel codice con una heatmap colorata.
Estrazione Query SQL
€49
Estrae tutte le query SQL presenti nel codice sorgente in un file esportabile.
Rilevamento Tabelle Inutilizzate
€59
Trova le tabelle del DB mai usate nel codice sorgente.
Grafo Dipendenze Unit
€59
Visualizza le dipendenze tra unit del codice in un grafo interattivo.
Metriche di Qualità Codice
€69
Complessità ciclomatica, duplicazione, copertura errori in un cruscotto.

Compliance

GDPR & Dati Sensibili
€89
Individua automaticamente dove si trovano dati personali (email, codici fiscali, telefoni, IBAN) anche in campi con nomi poco chiari come CAMPO_X o TEMP_USR.

Migrazione

Script di Migrazione Automatici
€69
Genera script SQL di migrazione tra due versioni del DB.
Mapping Dati Cross-DB
€69
Mappa i campi di un DB sorgente verso uno di destinazione con AI.
Validazione Post-Migrazione
€59
Verifica che tutti i dati siano stati trasferiti correttamente dopo una migrazione.

Report

Report Esecutivo
€69
Genera report in PDF per la direzione con KPI, rischi e roadmap.
Changelog Automatico
€49
Genera un changelog leggibile da ogni coppia di versioni caricate.
Glossario Dati
€59
Crea un glossario business del database in linguaggio naturale.
Generatore Specifiche API
€69
Genera automaticamente specifiche OpenAPI/Swagger dal tuo schema DB.
Indice di Complessità
€39
Score numerico della complessità del DB con trend nel tempo.
Report Associazione DB/Codice
€69
Esporta in PDF la mappa completa delle relazioni tra codice sorgente e database: matrice, unit e tabelle.
Modalità Presentazione
€49
Presenta il progetto al cliente in modalità fullscreen slideshow.
Report Tecnico Completo
€149
Genera un PDF professionale di 20-30 pagine con schema ER, glossario, heatmap, processi e appendice tecnica.

Schema DB

Gestione DB Importati
€29
Visualizza, rinomina ed elimina le versioni del database importate.
Export Schema ER in PDF
€49
Esporta lo schema ER completo in PDF professionale multi-pagina con indice e legenda.
Confronto Visivo Versioni
€49
Confronta due versioni del DB con una vista dual-panel interattiva.
Storico Versioni Schema
€59
Confronta visualmente due versioni del DB e vedi cosa è cambiato nel tempo.
Annotazioni sullo Schema
€49
Aggiungi note, commenti e tag direttamente sulle card delle tabelle nel diagramma ER.
Ricerca Avanzata nel DB
€49
Cerca in tutto lo schema: nomi tabella, campi, tipi, FK. Risultati istantanei.
Analisi Impatto Modifiche
€69
Prima di modificare una tabella, scopri tutto il codice e i DB che ne dipendono.
DB Compliance
€249
Verifica il tuo database contro le regole di design professionale e ottieni lo script SQL per allinearlo agli standard.

Storage

Storage Esteso
€49
Aumenta il limite di upload da 50 MB a 500 MB e da 10 a 100 upload per progetto.

Team

Commenti e Review
€49
Sistema di commenti su tabelle, unit e relazioni per il lavoro di team.
Notifiche e Alert
€49
Ricevi notifiche email per nuovi upload, analisi completate e scadenze.
Plus components are not refundable. Access is immediate and irrevocable from the moment of purchase. The 14-day right of withdrawal only applies to the base subscription, not to Plus components purchased separately.

Features with a 🕐 Coming soon badge are on the way: advanced security audit, code version comparison, automatic documentation, dependency graph and more — the catalogue expands regularly.

Light/Dark Theme

Work the way you like, on every page

The ☀/🌙 button at the top right of the main menu switches between dark and light theme. The preference saves automatically and applies to every page, including the ER Schema which lives in a separate panel — no need to set it twice.

Interface Language

Modej speaks 7 languages

Italian, English, Portuguese, Spanish, German, French and Kinyarwanda. Each user picks their own language from the selector in the main menu, independently of the other users on the same account — everyone sees Modej in the language they prefer.

AI-generated content (glossary, reports, descriptions) is created directly in the chosen language. This guide also follows the same language set in the menu.

Privacy and Security

What happens to your data
  • Passwords, API keys and credentials in the code are automatically masked before any submission to the AI;
  • Source code is not kept on the servers after the analysis;
  • DDL extraction scripts for legacy databases run locally on your computer — no credential is ever sent to Modej;
  • See the Terms of Service and Privacy Policy for full details.

Team Roles

Who can do what, within the same account

The account Owner can invite other users and assign each one of the three internal roles. Permissions are also checked server-side, not just by hiding buttons in the interface.

RoleCan do
OwnerEverything, including inviting/removing users and purchasing Plus
EditorImport, create and edit data — cannot delete projects or databases
ViewerRead-only: can browse schemas, reports and analyses already done

From Team the Owner sees all users, their status (active/disabled) and last access.

Requesting a Refund

Within 14 days, base subscription only

The base subscription (Monthly or Annual plan) is refundable within 14 days of purchase: just open a request from your profile, optionally state the reason, and the Modej team reviews it — once approved, the refund arrives via Stripe within 5-10 business days to the same payment method.

Plus components are never refundable, not even within 14 days: access is immediate and irrevocable from the moment of purchase. The right of withdrawal only applies to the base subscription.

Deleting Projects

When you need to start over

Permanently deletes a project and all linked data — database, code, processes, manual FKs. For safety you’ll need to type the exact project name to confirm. The operation is irreversible and transaction-protected: if something goes wrong halfway through, nothing is deleted.

FAQ

Do I have to upload the source code too?
No. You can use Modej just to document the database schema — ER Schema, Colours Areas, Manual FKs and Glossary all work without code. The features that link code and DB (AI Analysis, Code↔DB, Process Map) do require the code, though.
My database isn’t on the supported list, what do I do?
If it’s a server-based database with a standard SQL client, export the DDL manually and try uploading it: the parser automatically recognises many syntaxes. For more exotic databases, contact support.
Why don’t some triggers/stored procedures show up after the import?
If you imported the database before a parser update, re-upload the same DDL file: the system regenerates the extraction with the latest parser, including triggers and stored procedures that might have been missed before.
Can I have multiple databases in the same project?
Yes. A project can contain several different databases (useful if your application uses multiple databases), each with its own version history.
What happens if I buy a Plus and then don’t need it anymore?
Plus components are not refundable once purchased — access is immediate and irrevocable. They stay active until the annual expiry, after which they deactivate automatically if not renewed.
Is the data I upload safe?
Yes. Sensitive data such as passwords and keys is automatically masked before every AI analysis, and the source code is not kept on the servers after processing. See the Privacy and Security section for full details.

Contact Support

Didn’t find what you were looking for? We’re here to help.

support@modej.eu