Back to Prompts
David Park · Jul 15, 2026 · ⏱️ 1 min read
David Park More from Code
Database Schema Designer
Design normalized database schemas with relationships, indexes, and migration scripts.
👁️ 100,003 views 📋 12,396 copies ❤️ 6,309 saves 👍 99 likes
Design a database schema for [application/project].
REQUIREMENTS:
• [Core entity 1] with attributes: [list]
• [Core entity 2] with attributes: [list]
• Relationships: [one-to-many, many-to-many, etc.]
SCHEMA:
```sql
CREATE TABLE [entity1] (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
created_at TIMESTAMPTZ DEFAULT NOW(),
updated_at TIMESTAMPTZ DEFAULT NOW()
);
```
INDEXES:
• Primary key on id (clustered)
• Foreign key indexes on [columns]
• Composite index on [columns] for common queries
• Full-text search index on [text columns]
RELATIONSHIPS:
• [Entity1] → [Entity2]: One-to-Many via [foreign_key]
• [Entity1] ↔ [Entity3]: Many-to-Many via [join_table]
MIGRATION STRATEGY:
• Version-controlled SQL migrations
• Up/down functions for rollback
• Seed data for development
Expected Output
Fill in the bracketed [placeholders] in the prompt above with your specific details and run it with your preferred AI model to generate a tailored output based on this template.
Compatible Models
Usage Tips
- 1 Use the "database" approach to get more relevant and targeted results from this prompt.
- 2 Use the "sql" approach to get more relevant and targeted results from this prompt.
- 3 Use the "schema" approach to get more relevant and targeted results from this prompt.
- 4 Use the "backend" approach to get more relevant and targeted results from this prompt.
- 5 Use the "architecture" approach to get more relevant and targeted results from this prompt.
Frequently Asked Questions
What is this prompt used for?
This prompt is designed to help you generate high-quality outputs tailored to your specific needs. Simply replace the bracketed [placeholders] with your own details and use it with your preferred AI model.
Which AI models work best?
This prompt is optimized for the compatible models listed above. Different models may produce varying results based on their training and capabilities.
How do I customize this prompt?
Look for text in [brackets] and replace it with your specific details. You can also modify any section to better match your use case or style preferences.
Can I share this prompt?
Absolutely! Use the share button to send this prompt to others. You can also copy it and use it in your own projects.
Comments (4)
Alex Chen Aug 4, 2026
This prompt saved me hours of work. The structure is incredibly well thought out.
Marcus Johnson Aug 14, 2026
I used this for my latest project and got amazing results. Highly recommend!
Tom Wilson Aug 21, 2026
Is there a version optimized for Claude? The output was good but could be better.
Sarah Kim Aug 3, 2026
This is exactly what I was looking for. The section on [topic] is pure gold.
Similar Prompts
View all →Code
API Endpoint Documentation
Comprehensive API documentation template with request/response examples and error handling.
🤖 ChatGPT🧠 Claude🔍 DeepSeek
👁️ 101,592 📋 3,974 ❤️ 8,920 ⏱️ 1 min read