behzad-njf/django-db-schema-doc ? reverse-engineered prompt

Reverse engineered prompt

Build me a Django app I can add to an existing project that inspects whatever database is configured in DATABASES and generates a clear DATABASE.md for developers and AI tools.

I want it to document the schema in plain Markdown, including tables, columns, foreign keys, indexes, and any useful Django model details like docstrings, verbose names, and help text when the model matches the real table. It should also be able to export a structured JSON snapshot, DBML, schema examples, and a simple search command for finding tables or columns by name or meaning. If possible, include an optional interactive ERD page too.

Make the commands easy to run from manage.py, and make the output useful for copying into another tool that needs schema context. Keep it working with common Django databases, and look up current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab