• Prompts
  • Tools
    Prompt GeneratorTop AI Tools
  • Free Guides
  • Products
  • Contact us
  • Blog
  • Prompts
  • Free Guides
  • Products
  • Contact us
  • Blog
Custom Prompts
God of Prompt

About God of Prompt

Cutting-edge AI products for streamlining
your workflow.

XLinkedInYouTubeInstagram

Platform

  • Prompt Library
  • Free Guides
  • Prompt Generator
  • AI Tools
  • Products

Team

  • Support
  • Partnerships

© 2026 God of Prompt. All rights reserved.

Partnerships: [email protected]Privacy PolicyTerms & Conditions

27AI PromptsforDatabase Design

  • All Coding
  • Database Design
  • App Development
  • Frontend & UI
  • Documentation
  • Debugging
  • APIs & Integrations
  • DevOps & Deployment
  • Refactoring
  • App Development prompts
  • Frontend & UI prompts
  • Documentation prompts
  • Debugging prompts
  • APIs & Integrations prompts
  • DevOps & Deployment prompts
  • Refactoring prompts
  • Database Design prompts
  • Functions & Logic prompts
  • Testing prompts
  • Automation Logic prompts
  • Code Review prompts
  • Chatbot Personas prompts
  • Agent System Prompts prompts
  • Agentic Workflows prompts
  • Web Scraping prompts
## Role
You are an SQL optimization specialist who untangles complex queries and transforms them into clear, performant statements.

## Task
Analyze the provided SQL query and rewrite it for clarity and performance. Map the true data relationships, eliminate unnecessary complexity, and produce a query that future developers can understand and maintain.

## Context
{{query-and-schema}}

Include your existing query, relevant table definitions with columns and relationships, and a description of the expected result (what data you're trying to retrieve).

## Process
1. **Query Analysis**: Dissect the query to identify all tables, join conditions, and intended results. Flag problematic patterns:
   - Ambiguous outer joins
   - Unnecessary cross joins creating Cartesian products
   - Nested queries hiding business logic
   - Implicit joins in WHERE clauses

2. **Schema Understanding**: Review 

🧩SQL Query Optimization and Join Rewriting Prompt

MistralCodingDatabase Design

Analyzes and rewrites complex SQL queries with tangled joins into clear, performant statements with explicit join syntax and optimized structure. Runs on ChatGPT, Claude, Gemini, and Grok.

172
## Role
You are a SQL query architect specializing in production-ready queries that follow Joe Celko's SQL Programming Style, prioritizing readability, maintainability, and performance optimization.

## Task
Generate SQL queries compliant with Celko's formatting standards. Before writing any query, analyze the schema, identify potential performance bottlenecks, choose appropriate join strategies, and structure for maximum readability.

## Context
{{database-requirements}}

*Provide your database schema, the desired output/results you need, and any performance constraints or compliance requirements.*

## Query Standards

**Formatting:**
- Each major clause (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY) starts on a new line
- Subqueries indented 4 spaces
- Column lists vertically aligned
- Logical operators (AND, OR) at the beginning of lines
- Uppercase SQL keywords, lowercase identifier

🛠️SQL Query Generator With Celko Style Standards

GeminiGeminiCodingDatabase Design

Generates production-ready SQL queries following Joe Celko's formatting standards, with schema analysis and performance optimization. Runs on ChatGPT, Claude, and Cursor to produce readable, maintainable database code.

83

♟️Database Schema Design Prompt for SQL and Relational Models

GrokGrokCodingDatabase Design

Generates normalized relational database schemas with entity definitions, foreign key constraints, and denormalization trade-offs. Runs on ChatGPT, Claude, and other text models to produce SQL CREATE statements following Third Normal Form principles.

64

🔍SQL Query Performance Analysis Prompt

DeepSeekDeepSeekCodingDatabase Design

Generates a detailed performance diagnosis of SQL queries, complete with execution plan breakdowns, index recommendations, and optimized rewrites. Runs on ChatGPT, Claude, Gemini, and Grok to help database administrators and developers eliminate bottlenecks.

55

🛡️Data Access Control Implementation Guide Builder

GrokGrokCodingDatabase Design

Generates a complete database access control framework that balances security with operational efficiency. Runs on ChatGPT, Claude, Gemini, and Grok to produce role-based permissions, audit mechanisms, and phased rollout plans.

48
## Role

You are a database migration architect specializing in zero-downtime transformations for production systems where data integrity failures carry regulatory and business consequences. You apply database refactoring principles with precision: every schema change must be incremental, reversible, and validated. Your approach prioritizes correctness over speed.

## Task

Create a phased migration plan that transforms {{source-schema}} into {{target-schema}} while maintaining 100% uptime and data integrity throughout. The plan must accommodate {{business-constraints}} and execute within safe operational windows.

## Context

The database supports 24/7 operations with multiple dependent applications, some with undocumented dependencies. Previous migration attempts resulted in rollbacks. The transformation must proceed without disrupting global operations or risking data loss.

## Migrat

💣Database Migration Step List Generator

OpenAIChatGPTCodingDatabase Design

Generates a phased, zero-downtime database migration plan with DDL/DML scripts, validation queries, and rollback procedures for production systems. Runs on ChatGPT, Claude, and Cursor to output executable SQL code and risk analysis.

30
## Role

You are a database performance engineer specializing in query optimization. Analyze execution plans to identify bottlenecks and rewrite queries using proven optimization techniques. Your recommendations are specific, surgical, and grounded in execution mechanics.

## Task

Optimize the provided slow query by:

1. **Execution Plan Analysis**: Decode the current execution plan, highlighting expensive operations (table scans, inefficient joins, nested loops on large sets) and their root causes
2. **Bottleneck Identification**: Pinpoint specific issues—missing indexes, poor join order, unnecessary subqueries, cardinality misestimates, outdated statistics
3. **Optimization Strategy**: Apply targeted techniques including filtered indexes, proper join types, subquery elimination, index-aware restructuring, and database-specific features
4. **Rewritten Query**: Provide the optimized que

🔍Database Query Optimization Prompt for SQL Performance

MistralCodingDatabase Design

Analyzes execution plans, identifies bottlenecks, and rewrites slow SQL queries into high-performance operations. Runs on ChatGPT, Claude, Gemini, and Grok for database optimization.

24

🛡️Design Role-Based Access Controls

MistralCodingDatabase Design

Generates a complete RBAC implementation with role hierarchies, permission matrices, and SQL scripts for database systems. Runs on ChatGPT, Claude, and other text models to produce security-compliant access control documentation and code.

19

🛠️Stored Procedure Generator for T-SQL

GrokGrokCodingDatabase Design

Generates production-ready T-SQL stored procedures with modular design, error handling, and set-based operations. Runs on ChatGPT, Claude, and other text models to produce enterprise-grade database code.

18
## Role

You are a database design auditor specializing in Chen's Entity-Relationship Model principles. Your focus is conceptual correctness: entities, relationships, attributes, and business logic alignment. You catch structural flaws that lead to data integrity failures, operational errors, and costly post-implementation fixes.

## Task

Review the provided ERD or schema against foundational data modeling principles. Analyze step by step:

1. **Entities** – Verify each represents a real-world object or concept, not a process or event. Identify missing or misclassified entities.
2. **Relationships** – Examine cardinality (1:1, 1:N, M:N) and participation constraints (total/partial). Flag incorrect or missing relationships.
3. **Attributes** – Confirm each belongs to the entity it directly describes. Identify multi-valued or derived attributes that need correction.
4. **Normalization rea

🔍Data Model Flaw Analysis Prompt

GeminiGeminiCodingDatabase Design

Audits entity-relationship diagrams and database schemas against Chen's ER Model principles, identifying structural flaws in entities, relationships, attributes, and normalization. Runs on ChatGPT, Claude, Gemini, and Grok.

18
## Role

You are an expert database performance architect specializing in indexing strategies that balance read performance against write overhead.

## Task

Analyze the provided database structures and query patterns to recommend optimal indexing strategies. Deliver actionable CREATE INDEX statements with detailed justifications.

## Context

Effective index design requires understanding:
- Which columns appear in WHERE clauses, JOIN conditions, and ORDER BY statements
- Selectivity ratios that determine indexing value
- Compound indexes that support multiple query patterns while minimizing redundancy
- Covering index opportunities that eliminate key lookups
- Trade-offs between read performance gains and write operation overhead
- How query patterns evolve and impact long-term maintainability

**Database context:**
{{database-context}}

Include: table schemas with column definitions an

🛠️Database Indexing Strategy Analyzer

MistralCodingDatabase Design

Analyzes table schemas and query patterns to recommend optimal indexing strategies with actionable CREATE INDEX statements and performance trade-off assessments. Runs on ChatGPT, Claude, Gemini, and Grok.

17

🔄CSV Import System Design Prompt

MistralCodingDatabase Design

Generates a complete, production-ready CSV import function with pandas-based parsing, row-by-row validation, atomic transactions, and error reporting. Runs on ChatGPT, Claude, and Cursor to output Python code with database integration.

17

🔍Set Data Validation Rules

OpenAIChatGPTCodingDatabase Design

Generates SQL data validation rules across six quality dimensions (accuracy, completeness, consistency, timeliness, uniqueness, validity) for database schemas. Runs on ChatGPT, Claude, Gemini, and Grok.

17

📊Database Naming Convention Standardization Prompt

OpenAIChatGPTCodingDatabase Design

Generates an ISO 11179-compliant database naming standardization plan with rename scripts, rollback procedures, and dependency mapping. Runs on ChatGPT, Claude, and other code-capable models.

17
## Role
You are a metadata governance specialist who creates data dictionaries that bridge technical precision and business clarity, following ISO/IEC 11179 standards. Your documentation prevents costly misinterpretation by ensuring every definition is unambiguous and accessible to both technical and non-technical stakeholders.

## Task
Create a comprehensive data dictionary that documents every table and column with business definitions, technical specifications, ownership details, and relationships. The dictionary must follow ISO/IEC 11179 metadata registry standards while remaining readable by all stakeholders.

## Context
{{database-schema}}

Analyze the schema structure, identify relationships, clarify business context, define ownership boundaries, and ensure compliance with metadata standards.

## Output
Structure the data dictionary as follows:

### Overview
- Database purpose and

📜Data Dictionary Generator Prompt for Database Schema

MistralCodingDatabase Design

Generates a complete data dictionary from your database schema, documenting every table and column with business definitions, technical specifications, ownership, and relationships following ISO/IEC 11179 standards. Runs on ChatGPT, Claude, Gemini, and Grok.

17
## Role

You are an expert database architect specializing in schema optimization, normalization analysis, and redundancy elimination.

## Task

Analyze the provided database schema to identify redundant tables that waste storage, degrade performance, violate normalization principles, or create maintenance overhead. Deliver a comprehensive audit report with prioritized remediation recommendations.

## Context

Work through the analysis systematically:

1. **Map relationships**: Parse the schema to document all table relationships, foreign keys, and data flows
2. **Detect duplicates**: Compare column structures across tables to identify duplicate or overlapping data storage
3. **Flag isolation**: Identify tables with no foreign key relationships, suggesting disconnection from the core data model
4. **Examine naming**: Spot naming patterns indicating temporary, backup, experimental, or dep

🗄️Find Redundant Tables in Database Schema

ClaudeClaudeCodingDatabase Design

Analyzes database schemas to identify redundant, orphaned, and duplicate tables that waste storage or violate normalization principles. Runs on ChatGPT, Claude, Gemini, and Grok to deliver a prioritized audit report with remediation recommendations.

15

🔍Database Table Normalization Prompt for ChatGPT

ClaudeClaudeCodingDatabase Design

Analyzes database table structures and guides step-by-step normalization to third normal form (3NF), identifying violations and providing SQL migration scripts. Runs on ChatGPT, Claude, and Gemini.

13

🔍Database View Design Prompt for SQL Abstraction Layers

OpenAIChatGPTCodingDatabase Design

Generates production-ready SQL CREATE VIEW statements that transform complex schemas into secure, business-friendly abstraction layers with performance optimization and example queries. Runs on ChatGPT, Claude, Gemini, and Grok.

13
## Role
You are a database migration architect specializing in Laravel schema evolution, designing production-grade migrations that maintain data integrity and enable safe rollbacks.

## Task
Create timestamped Laravel migration files for the requested schema changes. Each migration must include:

- Atomic up() and down() methods
- Proper constraint management and referential integrity
- Inline comments explaining critical steps
- Rollback strategies for each transformation
- Sequencing that minimizes downtime

## Context
Analyze the provided database structure and required changes to identify dependencies and risks. Design migrations following Laravel conventions:

- One logical change per migration file
- Foreign keys applied after referenced tables exist
- Indexes named consistently
- Data transformations separated from schema changes when complex
- Safe defaults for new NOT NULL colu

🔄SQL Migration Generator for Laravel Schema Changes

AnthropicClaude CodeCodingDatabase Design

Generates timestamped Laravel migration files with atomic up() and down() methods, constraint management, and rollback strategies. Produces production-grade PHP code for ChatGPT, Claude, or Cursor.

12
## Role
You are a database architecture specialist who translates ERD diagrams into production-ready schemas, preserving all relationships, constraints, and cardinality rules.

## Task
Convert the provided ERD into complete, executable DDL statements that maintain data integrity and business logic.

Analyze before generating:
- Each entity and its attributes
- All relationships and their cardinality (1:1, 1:N, M:N)
- Constraints that enforce business rules
- Naming patterns that preserve business context

## Context
{{erd-diagram}}

Target database: {{database-system}}

Naming convention: {{naming-convention}}

## Output
Provide executable DDL organized as:

**1. Table Definitions**
- CREATE TABLE statements with all columns and explicit data types
- Inline PRIMARY KEY declarations

**2. Foreign Key Constraints**
- All FOREIGN KEY constraints with proper REFERENCES
- ON DELETE/ON UPDATE 

🕵️‍♂️ERD to Database Schema Converter

OpenAIChatGPTCodingDatabase Design

Converts Entity-Relationship Diagrams into production-ready DDL statements with preserved constraints, cardinality rules, and business logic. Generates executable SQL schema code for ChatGPT, Claude, or Cursor.

12

📊SQLite Database Loader From CSV Generator

GeminiGeminiCodingDatabase Design

Generates a complete Python system that converts CSV files into a normalized, indexed SQLite database with automatic type inference, constraint validation, and detailed import logging. Runs on ChatGPT, Claude, and Cursor.

12

📦Data Archiving Strategy Prompt for Database Design

GrokGrokCodingDatabase Design

Generates a phased data archiving strategy that categorizes records by business value, regulatory retention, and access frequency to reduce production database size while maintaining compliance. Runs on ChatGPT, Claude, Gemini, and Grok.

12

🧩Database Schema Generator Prompt for ChatGPT

MistralCodingDatabase Design

Generates normalized, scalable relational database schemas from business requirements, complete with SQL CREATE statements, ERD diagrams, and design rationale. Runs on ChatGPT, Claude, and other code-capable text models.

12
## Role

You are an expert Database Performance Architect specializing in SQL Server index maintenance using Kimberly Tripp's methodologies. You guide users through a comprehensive, phased maintenance strategy tailored to their specific environment.

## Task

Create a complete index maintenance plan that progresses through 7-10 dynamic phases based on the user's database complexity. Each phase builds on the previous, moving from discovery and assessment through strategy design, automation, and long-term optimization.

Adapt the depth and number of phases to match:
- Database size and transaction volume
- Business criticality and uptime requirements  
- Current fragmentation and performance baseline
- Available maintenance windows
- Team technical expertise level

## Context

**User Environment:**
{{database-environment}}

**Current Pain Points:**
{{performance-issues}}

## Process

### P

🌱SQL Server Index Maintenance Plan Generator

GrokGrokCodingDatabase Design

Generates a phased SQL Server index maintenance strategy using Kimberly Tripp's methodologies, tailored to your database size, transaction volume, and maintenance windows. Produces ready-to-run T-SQL scripts for ChatGPT, Claude, or Cursor.

11
MarketingDesignEducationFinanceSalesCodingWritingSEOStrategyProductivityOperationsHuman ResourcesResearchLegalData AnalysisReal EstateCustomer ServiceCareersAudioAI AgentsVideo

What are AI prompts for Database Design?

AI prompts for Database Design are engineered instructions that already work — not one-line questions. Each one fixes the role, the context, the task and the output format before you type a word, so you get a usable result on the first run instead of the fourth.

They cover the work Database Design actually get asked for: research and briefs, copy and content, analysis and reporting, planning, outreach and the admin that eats the day. Open a card to see the full prompt and the output it returns.

27 on this page, every one scoped to Database Design — free to read, free to copy.

Why these prompts work for Database Design

A weak prompt costs you the hour you were trying to save: you rewrite it three times, get something generic, then finish the job by hand. An engineered prompt front-loads that thinking once.

In Database Design that means first drafts you can send, analysis you can act on, and the repetitive work handed off — so the time goes into judgement instead of typing.

Every prompt here was written for a real job and tested against the models people actually use. Nothing scraped from a thread.

How to use these prompts

Open a prompt, copy it, and replace the [bracketed] variables with your own product, audience or topic. The structure around them stays as is — that structure is the part doing the work.

Paste it into ChatGPT, Claude, Gemini, Grok or the model you already use. If the output drifts, tighten the context line instead of rewriting the whole prompt.

No account needed to copy one. No setup, no extension, nothing to install.

Which AI tool works best for Database Design prompts?

Text prompts here run well in ChatGPT, Claude, Gemini and Grok; image prompts target Midjourney and Nano Banana. Each card lists the models it was tested with.

Are these AI prompts free to use?

A big part of the library is free: open a prompt, copy it, use it. Premium packs and the Complete AI Bundle unlock the full collection with lifetime updates.

How do I adapt these prompts to my use case?

Start with the [variables]: niche, audience, constraints. If the result still misses, add one example of the output you want — a single good example beats three extra instructions.

For a prompt built from scratch, the Start Now card above opens the custom prompt generator.

Related resources

ChatGPT Prompts for Database DesignClaude Prompts for Database DesignGemini Prompts for Database DesignGrok Prompts for Database DesignDatabase Design AI Prompts for SolopreneursDatabase Design AI Prompts for EntrepreneursDatabase Design AI Prompts for Business Owners