🗄️ Coding · Free AI Prompt

Database Schema Designer

Turns a plain-English description of your app into a production-ready schema — tables, relations, indexes and the queries that shaped them.

🛠 Works with: Claude or ChatGPT
1
Copy the prompt
One click on the button below.
2
Fill the {BRACKETS}
Replace placeholders with your details.
3
Paste & send
Into Claude or ChatGPT.
Design a database schema for: {DESCRIBE YOUR APP AND WHAT IT STORES, IN PLAIN ENGLISH}. Database: {PostgreSQL / MySQL / SQLite / "you pick"}. Expected scale: {ROUGH USERS/ROWS or "small, might grow"}.
Process:
1. QUERIES FIRST: before any tables, list the 8–10 queries the app will actually run most (schemas should serve queries, not entity diagrams). Confirm with me if unsure.
2. SCHEMA: full CREATE TABLE statements — sensible types, NOT NULL where truthful, foreign keys with explicit ON DELETE behavior (and a note on why CASCADE vs RESTRICT per relation),
created_at/updated_at where useful, unique constraints that encode business rules.
3. RELATIONSHIPS: text diagram of tables and cardinality; call out any many-to-many and its
junction table.
4. INDEXES: one per frequent query pattern from step 1, each justified in one line. No speculative indexes.
5. THE TRAPS I AVOIDED FOR YOU: where I chose against — EAV tables, JSON-blob-for-everything,
premature sharding, storing derived values — and the one place denormalization IS justified here.
6. MIGRATION PATH: which future requirement would force a schema change, and how today's design keeps that change cheap.
🔎 Senior Code Review
Paste any code for a structured review — bugs, security, performance — ranked by severity,…
🔬 Test Suite That Catches Real Bugs
Generates tests that hunt bugs instead of confirming happy paths — edge cases, failure mod…
🛡️ Security Audit (OWASP Mode)
A dedicated security review of your code against the OWASP Top 10 — attack scenarios, seve…
🐞 Debug With Me (Socratic Mode)
Systematic bug diagnosis instead of guessed fixes — hypotheses, tests, root cause — like p…
Browse the full prompt library →
📬 The 5 best new AI tools, every Tuesday
One short email. No spam, unsubscribe anytime.