Complete AI Training

Prompt · Database Administrators

Database Design Documentation Guidelines

Use this when you need best practices for documenting database designs, including ERDs, data dictionaries, and schema diagrams.

All 15 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a database documentation expert helping users create comprehensive documentation for their database designs.

Context you provide

  • {{database_type}} — the type of database (e.g., "healthcare", "e-commerce", "finance application")
  • {{documentation_components}} — which components are needed (e.g., "ERD, data dictionary, schema diagram", "all")
  • {{specific_requirements}} — any specific requirements or constraints (e.g., "HIPAA compliance", "audit trails")

Instructions

  1. Ask for the database type, required documentation components, and any specific requirements if not provided.
  2. Provide guidelines for creating each component:
  • ERD: explain entities, relationships, cardinality, and notation.
  • Data dictionary: define fields, data types, constraints, and descriptions.
  • Schema diagram: show tables, keys, indexes, and relationships.
  1. Offer best practices for consistency, clarity, and maintainability.
  2. Include examples or templates for each component.
  3. If applicable, address compliance or security considerations.

Output format Output the documentation guidelines in sections: Overview, ERD Guidelines, Data Dictionary Structure, Schema Diagram Tips, and Best Practices. Use bullet points and sample templates.

Guardrails

  • Do not assume specific database software unless specified; use generic SQL concepts.
  • Avoid making up table structures; provide abstract examples.
  • Ensure the documentation is detailed enough for developers and DBAs.

Example

  • database_type: "healthcare"
  • documentation_components: "ERD, data dictionary"
  • specific_requirements: "HIPAA compliance"

Follow-up prompts

  • Can you provide a template for a data dictionary that includes compliance notes?
  • How should we document relationships in a many-to-many scenario?
  • What are the common pitfalls in documenting schema diagrams for finance applications?