Design Normalized Database Schemas, Indexes & ER Diagrams from Plain Business Rules
Describe your product entities and workflows in plain language to get production-ready PostgreSQL/MySQL DDL, composite indexes, Prisma/Drizzle schemas and a visual ER diagram.
Fixing bad column types or missing idempotency constraints after launch is painful. Having AI act as a senior DBA up front catches 90% of schema pitfalls.
Step-by-Step Action Checklist
0 / 4 CompletedYou are a senior database architect. I am building [system description] on [PostgreSQL / MySQL 8.0]. Output: 1) [Mermaid ER Diagram]: `erDiagram` syntax showing entities, keys and cardinality; 2) [Production DDL]: Complete `CREATE TABLE` statements with exact types (integer cents or decimal for money, never float), idempotency unique keys and comments; 3) [Index Strategy]: Composite indexes matched to the top access patterns with left-prefix explanation.