database-architecture
Installation
SKILL.md
Database Architecture
Design and optimize database systems: schema patterns, indexing strategies, partitioning schemes, replication topologies, migration procedures, and performance tuning.
Guiding Principle
"The database is the gravity well of your system — schema decisions are the hardest to change, so invest the most thought where the cost of change is highest."
Procedure
Step 1 — Schema Design
- Identify entities, relationships, and cardinality from domain model
- Select modeling approach: normalized (OLTP), denormalized (OLAP), document, graph
- Design primary keys: natural vs. surrogate, UUID vs. sequential
- Define constraints: foreign keys, unique, check, not-null
- Apply schema patterns: soft delete, audit columns, polymorphic associations, EAV (when justified)