data-modeling-patterns
Installation
SKILL.md
Data Modeling Patterns
"Data models encode business rules — get them wrong and everything downstream suffers from the same misunderstanding."
TL;DR
Five-step procedure to design production-quality relational schemas: normalization analysis, strategic denormalization for performance, polymorphic association patterns, soft delete with full audit trail, and temporal/historical data modeling.
Step 1 — Discover Domain & Query Patterns
- List all primary entities and their attributes from domain language (not technical terms).
- Map relationships: one-to-one, one-to-many, many-to-many, self-referential.
- Identify the 10 most frequent queries — the schema should serve these efficiently.
- Identify write patterns: bulk inserts, high-frequency updates, append-only.
- Determine compliance requirements: GDPR (right to erasure), SOC2 (audit logs), PCI (data retention).