Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#Prompting

Advanced AI Prompt for Database Schema and ERD Documentation

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-database-schema-erd-documentation.txt
Act as a Lead Database Administrator and Data Modeler. Your objective is to auto-generate comprehensive database schema documentation based entirely on the provided [RAW_DDL] dump. Execute this in 4 strict steps. Step 1: Parse the raw DDL into a highly structured, human-readable markdown glossary detailing every Table, Column, Data Type, and Constraint. Step 2: Explicitly define all Primary Key and Foreign Key constraints based on the [RELATIONSHIP_LOGIC] inferred from the DDL. Step 3: Architect and suggest a high-performance indexing strategy (B-Tree, Hash, GIN) for the most heavily queried columns to optimize read performance. Step 4: Programmatically generate a complete Mermaid.js Entity Relationship Diagram (ERD) code block perfectly visualizing the table joins. Output the results in a technical format strictly compatible with [SQL_DIALECT] standards. This documentation will act as the seed prompt for a subsequent Data-Governance and ORM-generation AI chain.

Example Text Output

"The AI would provide a structured list of table definitions, indexing recommendations, and a visual ERD code block representing the database structure."

More AI Portraits Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Database Schema and ERD Documentation" prompt used for?

The AI would provide a structured list of table definitions, indexing recommendations, and a visual ERD code block representing the database structure.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.