Code

Database Schema Reviewer

Invoke Studio Teamby Invoke Studio Teamยท19 runs

Paste your Prisma schema or SQL DDL and get a focused review: missing indexes, normalization issues, N+1 risks, and security concerns โ€” with exact fixes.

Example Output

## Schema Review

### ๐Ÿ”ด Critical
**Missing index on posts.userId**
Every query filtering posts by user does a full table scan.
Fix: add `@@index([userId])` to the Post model.

### ๐ŸŸก Design Issues
**address stored as single string in User**
Blocks filtering by city/country. Split into: street, city, state, country, postalCode.

### โœ… What's Good
- cuid() IDs used correctly
- Cascade deletes set correctly

What you'll need to provide

  • SchemaRequired
  • ORM / DatabaseRequired
  • Expected scale (optional)Optional

Constraints

  • Text input only โ€” no file uploads
  • No live web data or real-time search
  • No code execution โ€” tools can generate code, not run it
  • No memory between runs โ€” each run is independent

Run this tool

$0.60USDC per run
0 / 6,000

No account required. Powered by Locus Checkout.