Database Schema Designer

folder Coding & Dev Prompts smart_toy ChatGPT (GPT-4o) visibility 5 views content_copy 0 copies

Design an optimized database schema with proper relationships, indexes, and migration scripts.

code Prompt
Design a complete database schema for [Application Type] application. Use [MySQL/PostgreSQL/MongoDB]. Requirements:

[Describe your application requirements, main entities, and relationships]

Provide:
1. Entity-Relationship diagram (text format)
2. Complete table/collection definitions
3. Data types and constraints
4. Primary and foreign keys
5. Indexes (explain reasoning for each)
6. Normalization level (1NF/2NF/3NF) reasoning
7. Many-to-many junction tables
8. Audit/timestamp fields
9. Soft delete strategy
10. Migration scripts (SQL/NoSQL)
11. Sample seed data
12. Common query examples
13. Scaling considerations
14. Backup strategy recommendation

help_outline How To Use This Prompt

Describe your application requirements, main entities, and expected data volume.

lightbulb Example Output

Table: users (id INT PK, email VARCHAR(255) UNIQUE, password_hash VARCHAR(255), created_at TIMESTAMP)...

quiz Frequently Asked Questions

What is the "Database Schema Designer" prompt used for? expand_more
Design an optimized database schema with proper relationships, indexes, and migration scripts.
Which AI models work with this prompt? expand_more
This prompt works best with ChatGPT (GPT-4o). You can also try it with other large language models for similar results.
Can I modify this prompt? expand_more
Yes! Feel free to copy and customize this prompt to better fit your specific needs. You can change names, industries, tones, or any other variables to personalize the output.
Is this prompt free to use? expand_more
Absolutely. All prompts on GetPromptPro are free to copy and use for personal or commercial purposes.