P

DALL-E Prompt to Generate a Database Schema

DALL-E, OpenAI's image generation model, can be used creatively to produce visual database schemas. Whether you are a developer, software architect, or student, visualizing the structure of a database as an entity-relationship diagram is essential for understanding links between tables, primary keys, and relationships. Rather than using technical tools like dbdiagram.io or Lucidchart, DALL-E allows you to quickly generate a clear and aesthetic visual of a relational schema, ideal for presentations, educational documents, or brainstorming sessions. The main challenge lies in formulating the prompt: you must guide the model precisely to obtain a readable diagram, with explicit table names, well-defined columns, and relationships clearly represented by lines and cardinalities. In this guide, you will discover an optimized prompt to generate a professional database schema with DALL-E, as well as variants adapted to your level of expertise and the complexity of your project.

The prompt

DALL-E

Generate a professional relational database schema as an entity-relationship diagram (ERD). The schema must include the following tables: Users (id, name, email, created_at), Orders (id, user_id, total, status, created_at), Products (id, name, price, category), and OrderItems (id, order_id, product_id, quantity, unit_price). Represent each table as a rectangle with the table name in a colored header and the columns listed below with their data types. Indicate primary keys with a key icon and foreign keys with an arrow. Connect the tables with lines showing cardinalities (1-N, N-N). Use a clean visual style, soft contrasting colors for each table, a white or very light gray background, and readable sans-serif typography. The diagram should be organized from left to right with regular spacing between elements.

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Why it works

This prompt works because it provides a concrete data structure with explicit table names, columns, and types, which reduces ambiguity for the model. The precise visual instructions (colors, layout, typography) guide DALL-E toward a professional and readable output. Finally, mentioning standard ERD conventions (keys, cardinalities, rectangles) anchors the model in a recognized visual vocabulary.

Expected result

You will obtain a clean and visually structured entity-relationship diagram, with four tables logically arranged and connected by lines indicating relationships. Each table will appear as a colored rectangle with its columns and data types clearly listed. Primary and foreign keys will be identifiable, and the whole will have a professional appearance suitable for technical documentation or a presentation.

Variants by level

FAQ

Can DALL-E generate database schemas with perfectly readable text?
DALL-E has made significant progress in rendering text, but it can still produce typographical errors or distorted characters, especially for technical column names. For schemas requiring absolute text precision, it is recommended to use DALL-E as a visual starting point, then touch up the text with an image editing tool or switch to a specialized tool like dbdiagram.io for the final version.
How to adapt the prompt for a more complex database schema with more than 10 tables?
For complex schemas, it is better to divide the diagram into functional subdomains and generate multiple images. For example, generate the user module, order module, and product module separately. Specify in the prompt the desired layout (vertical or horizontal) and ask for a zoom on a specific section. You can also request a simplified overview showing only the tables and their relationships without the column details.
What are the limitations of DALL-E compared to a dedicated data modeling tool?
DALL-E generates a static image that cannot be structurally modified or exported to SQL. Unlike tools like MySQL Workbench, pgModeler, or Lucidchart, it does not allow validating the schema's consistency, automatically generating table creation scripts, or versioning the data model. DALL-E is ideal for rapid prototyping, visual presentations, and communication with non-technical stakeholders, but does not replace a modeling tool for production.

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 4800+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More prompts to explore

DALL-E Prompt to Generate a Study Plan

DALL-E, OpenAI's image generation model, can be creatively used to produce visual and engaging study plans. Rather than t

Gemini Prompt for Analyzing a Contract

Contract analysis is a time-consuming task that requires careful attention to legal details. Gemini, with its ability to process long and complex documents, proves to be a valuable ally for dissecting contractual clauses.

Gemini Prompt for Analyzing Customer Reviews

Customer review analysis has become an essential strategic lever for any business looking to improve its products and services. With billions...

Gemini Prompt for Analyzing Market Trends

Market trend analysis is a strategic exercise that conditions business decision-making. Gemini, thanks to its ability to process large volumes of information and cross-reference various sources, proves to be a powerful ally for identifying weak signals, mapping sector dynamics, and anticipating market developments. Whether you are an entrepreneur, analyst, or strategic manager, a well-structured prompt provides a synthetic and actionable view of the trends shaping your industry. The challenge is not merely to collect data, but to organize it into actionable insights: which segments are emerging, which consumer behaviors are evolving, which technologies are reshuffling the deck. By formulating a precise query to Gemini, you transform a research process that would take hours into a structured analysis delivered in seconds. This guide offers an optimized main prompt along with variants adapted to your expertise level, to fully leverage Gemini's potential in your market analyses.

Gemini Prompt for Analyzing the Competition

Competitive analysis is a fundamental pillar of any effective business strategy. With Gemini, Google's AI, you have a powerful tool to d

Gemini Prompt for Brainstorming Ideas

Brainstorming is a crucial step in any creative, strategic, or entrepreneurial project. Yet generating original and relevant ideas remains a challenge, especially when working alone or going in circles on a topic. Gemini, Google's artificial intelligence model, excels at idea generation thanks to its ability to cross-reference diverse fields of knowledge and propose unexpected angles. Unlike classic brainstorming where cognitive biases often limit exploration, Gemini can scan a much wider space of possibilities in seconds. Whether you're looking for content ideas, product concepts, brand names, marketing angles, or solutions to a complex problem, a well-structured prompt turns Gemini into an tireless thinking partner. The challenge is not simply to ask for ideas, but to frame the request to get diverse, actionable proposals aligned with your real constraints. The prompts presented here use proven techniques to maximize the quality and variety of generated ideas, guiding the model toward methodical exploration rather than a mere generic list.

Go further

Get new prompts every week

Join our newsletter.