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.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- 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
- Ask for the database type, required documentation components, and any specific requirements if not provided.
- 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.
- Offer best practices for consistency, clarity, and maintainability.
- Include examples or templates for each component.
- 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?