Database Schema Designer
Complete database schema with tables, relationships, indexes, and sample SQL queries.
ChatGPTCode & Tech
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
How to use this prompt
- Copy the prompt with the button above.
- 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].
- Paste it into ChatGPT and send it. It also works in other AI chat tools.
- Not quite right? Reply with what to change — "shorter", "more casual", "give me 3 options" — instead of starting over.