What problem does it solve? Database schemas designed without constraints, proper keys, or correct data types accumulate integrity problems that surface only after the application scales or gains a second writer. This Skill guides the modeling of entities, relationships, and constraints so the database itself enforces correctness instead of relying on application code. ## Core Features & Use Cases - Schema Design Process: Walks through entity listing, cardinality modeling (1:1, 1:N, M:N with junction tables), and 3NF normalization with measured denormalization guidance. - Key, Type, and Constraint Rules: Covers surrogate vs natural keys, NUMERIC money handling, timestamptz usage, CHECK constraints, FK ON DELETE behavior, partial unique indexes, and JSONB vs column trade-offs. - Review Checklist and Output Format: Audits existing schemas for missing PKs/FKs, float money, orphan rows, and fan-out traps, then delivers a mermaid ER diagram, DDL, and risk analysis. - Use Case: When modeling a new orders domain, use this Skill to produce DDL with identity primary keys, status CHECK constraints, idempotency unique keys, and RESTRICT delete behavior before writing any application code. ## Quick Start Ask the AI to design a Postgres schema for your domain entities with constraints, keys, and a mermaid ER diagram using the schema-design skill.