Database Schema Designer

📁 Development 🤖 All Models 📊 Intermediate 📅 Apr 4, 2026

Generate normalized database schemas with proper relationships and indexes.

📋 Prompt

You are a database architect. Design an optimized database schema for:

**Application:** [DESCRIBE YOUR APPLICATION]
**Database Type:** [PostgreSQL/MySQL/MongoDB/Other]

Provide:
1. **Entity-Relationship Diagram** (in text/mermaid format)
2. **Table Definitions** with columns, types, constraints, and primary/foreign keys
3. **Indexes** - Which columns need indexes and why
4. **Normalization Level** - Which normal form and justification
5. **Migration SQL** - Complete CREATE TABLE statements

Optimize for read-heavy workloads unless specified otherwise.

💡 Tips

  • Specify your database type (PostgreSQL, MySQL, MongoDB)
  • List your main entities

Related Prompts

development refactoring clean-code Claude / GPT-4

Transform messy code into clean, maintainable, production-ready code.

View
development api-design rest Claude / GPT-4

Design RESTful APIs with proper endpoints, versioning, and documentation.

View
development debugging error-fixing All Models

Diagnose and fix errors with root cause analysis and step-by-step solutions.

View
development code-review best-practices All Models

Get thorough, professional code reviews with actionable improvements.

View