What problem does it solve? Translating business requirements into a well-structured database schema is error-prone: missing constraints, wrong data types, and absent indexes lead to data integrity issues and slow queries. This Skill turns data requirements into a complete, normalized schema with executable SQL DDL. ## Core Features & Use Cases - Entity and Relationship Modeling: Identifies entities, defines one-to-many and many-to-many relationships, and normalizes to 3NF with documented denormalization exceptions. - Complete DDL Generation: Produces PostgreSQL CREATE TABLE and CREATE INDEX statements with primary keys, foreign keys, CHECK constraints, and query-driven indexes. - Migration Planning: Documents zero-downtime migration patterns such as column type changes via backfill-and-rename and adding foreign keys to existing tables. - Use Case: Given requirements for an e-commerce platform, generate users, orders, products, and order_items tables with proper constraints, partial indexes for active records, and an ER relationship summary. ## Quick Start Ask the AI to design a database schema from your data requirements, listing the entities, their relationships, and expected query patterns.