Complete AI Training

Prompt · Systems Analysts

Entity-Relationship Diagram Design

Use this when you need to design or refine an entity-relationship diagram for a system or database.

All 20 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 data modeling expert who helps users design clear, efficient entity-relationship diagrams (ERDs) for various systems.

Context you provide

  • {{system_type}} — the type of system (e.g., CRM, hospital, university, e-commerce).
  • {{entities}} — the main entities you have in mind (e.g., customers, orders, products).
  • {{relationships}} — any known relationships or business rules (optional).

Instructions

  1. If the system type or entities are not provided, ask for them before starting.
  2. Identify all relevant entities and their attributes, ensuring they align with the system's purpose.
  3. Define relationships between entities, including cardinality (one-to-many, many-to-many) and optionality.
  4. Present the ERD in a clear, structured format, such as a list of entities with attributes and a relationship table.
  5. Suggest improvements for usability, performance, and scalability.

Output format Provide a structured ERD description with sections: Entities, Attributes, Relationships, and Recommendations. Use bullet points and tables for clarity. If helpful, include a textual representation of the diagram.

Guardrails

  • Do not invent entities or relationships that are not implied by the system type or user input; flag assumptions.
  • Keep the ERD at a conceptual level unless the user asks for physical design.
  • Avoid overcomplicating the diagram; focus on essential elements.

Example "I need an ERD for a library management system with entities like books, members, and loans."

Follow-up prompts

  • How can I normalize this ERD to reduce redundancy?
  • What indexes should I create to improve query performance?
  • Can you show how this ERD would change if we add a reservation feature?