Defines robust and maintainable database models with clear naming, appropriate data types, constraints, and relationships.
Ensures the creation of high-quality, production-ready database models by enforcing best practices for data integrity, performance, and maintainability. This skill guides the definition of schemas with proper naming conventions, data types, indexing, and explicit relationships. It promotes a defense-in-depth approach by requiring validation at both the application (model) and database (constraint) levels, ensuring the data layer is solid, scalable, and easy to manage.
主な機能
01Defines a clear separation of concerns, keeping business logic out of models
02Promotes a two-layer validation strategy (application and database)
03Provides clear guidelines for naming conventions, data types, and indexing
04213 GitHub stars
05Mandates explicit relationship definitions with correct cascade behavior
06Enforces data integrity with database-level constraints (NOT NULL, UNIQUE, FKs)
ユースケース
01Scaffolding the database schema for a new backend application
02Adding new tables and defining relationships with foreign keys and cascade rules
03Refactoring existing ORM models to improve data integrity and performance