Database Schema Designer

Complete database schema with tables, relationships, indexes, and sample SQL queries.

88 words · free to use
Design a database schema for my application.

App type: [DESCRIBE]
Database: [POSTGRESQL/MYSQL/MONGODB/SQLITE]
Core entities: [LIST — e.g. users, products, orders]
Key relationships: [HOW ENTITIES RELATE]
Expected data volume: [ROWS AT SCALE]

Provide:
1. Complete schema with all tables, columns, and types
2. Primary and foreign key relationships
3. Indexes to add for performance
4. Many-to-many junction tables where needed
5. The SQL CREATE TABLE statements
6. Sample queries for the 5 most common operations
7. What to normalize vs denormalize
8. How to handle soft deletes and timestamps
databaseschemaSQLPostgreSQLdata modeling

How to use this prompt

  1. Copy the prompt with the button above.
  2. Replace the parts in brackets with your own details: [DESCRIBE], [POSTGRESQL/MYSQL/MONGODB/SQLITE], [LIST — e.g. users, products, orders], [HOW ENTITIES RELATE], [ROWS AT SCALE].
  3. Paste it into ChatGPT and send it. It also works in other AI chat tools.
  4. Not quite right? Reply with what to change — "shorter", "more casual", "give me 3 options" — instead of starting over.

Related code & tech prompts

See all 183 Code & Tech prompts →

Get 10 new prompts every week

Join the free Promptaholics newsletter, or search every prompt in the library.

We use cookies for analytics and ads. See our Privacy Policy.