What problem does it solve?
Many applications suffer from inconsistent, unoptimized, or non-normalized database schemas that lead to data anomalies, poor query performance, and brittle integrations; this Skill converts ambiguous requirements into a robust relational schema that enforces integrity and supports maintainability.
Core Features & Use Cases
- Entity modeling & relationships: Identify entities, choose primary keys, and map one-to-one, one-to-many, and many-to-many relationships with appropriate foreign keys or junction tables.
- Normalization & integrity: Apply normalization up to 3NF, remove transitive dependencies, and add NOT NULL, UNIQUE, CHECK, and DEFAULT constraints to enforce domain rules.
- Performance & portability: Recommend and create indexes, composite indexes, and provide SQL DDL targeted to PostgreSQL, MySQL, SQLite, or other specified RDBMS, plus migration-friendly idempotent CREATE statements.
- Use Case: Convert an e-commerce requirements doc into a complete schema with users, products, orders, order_items, constraints, and indexes ready for deployment.
Quick Start
Ask the agent to design a normalized PostgreSQL schema for an e-commerce application with users, products, orders, and order items including constraints and indexes.