Database Schema Design

•
21
•

Designs and optimizes production-ready PostgreSQL and MySQL database schemas using normalization and performance best practices.

This skill provides comprehensive guidance for architecting robust relational databases, focusing on PostgreSQL and MySQL. It empowers Claude to implement strict normalization (up to 3NF), enforce referential integrity with explicit foreign keys, and avoid common anti-patterns like EAV or improper data types. Whether you are building a new system from scratch or reviewing an existing schema for performance bottlenecks, this skill ensures your database architecture is scalable, maintainable, and follows industry-standard naming conventions and audit patterns.

Características Principales

01Optimized index recommendations for foreign keys and frequent query paths.
02Automated normalization up to 3NF to eliminate data redundancy and anomalies.
0321 GitHub stars
04Identification and correction of common anti-patterns like EAV and polymorphic associations.
05Standardized audit patterns including automatic created_at and updated_at columns.
06Implementation of referential integrity with explicit foreign keys and cascade rules.

Casos de Uso

01Generating migration scripts with proper PostgreSQL/MySQL data types and check constraints.
02Designing a new relational database for a multi-tenant SaaS application.
03Refactoring a legacy schema to fix missing constraints and improve join performance.