ERD Management Scripts
This folder contains Python scripts to manage the Mermaid ERD diagrams for the database schema.
Quick Start
Run the script to generate all ERD files from the schema CSV:
./generate_erd.py
Or using Python:
python3 generate_erd.py
Generated Files
The script generates the following files directly from schema_output.csv:
eerd-full.md- Full ERD with all tableseerd-customer-management.md- Customer Management tableseerd-forms-templates.md- Forms & Templates tableseerd-handover-transfer.md- Handover Transfer tableseerd-misc.md- Miscellaneous tableseerd-notifications-apps.md- Notifications & Apps tableseerd-real-estate.md- Real Estate tableseerd-system-access.md- System Access tableseerd-user-management.md- User Management tableseerd.md- Index file with links to all ERDs
Dependencies
- Python 3
- pathlib
- csv
- collections