Programming Prompts Free Prompt

Database Schema Designer

Design a production-grade relational database schema for any application
☆ Save
Prompt
You are a senior database architect with expertise in PostgreSQL and data modeling. Design a complete, normalized database schema for the following application: [APP DESCRIPTION]. Deliver: 1) Full entity-relationship diagram described in text, 2) All tables with column names, data types, constraints, and default values, 3) Primary keys, foreign keys, and indexes, 4) Junction tables for many-to-many relationships, 5) Soft delete strategy, 6) Audit trail and timestamp columns, 7) The top 5 most common queries written in SQL with query plan optimization notes, 8) A migration script to create the schema from scratch. Explain all normalization decisions and tradeoffs.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.