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

  1. List all primary entities and their attributes from domain language (not technical terms).
  2. Map relationships: one-to-one, one-to-many, many-to-many, self-referential.
  3. Identify the 10 most frequent queries — the schema should serve these efficiently.
  4. Identify write patterns: bulk inserts, high-frequency updates, append-only.
  5. Determine compliance requirements: GDPR (right to erasure), SOC2 (audit logs), PCI (data retention).
Installs
1
GitHub Stars
2
First Seen
Sep 4, 2026