What problem does it solve?
This Skill addresses the challenge of creating and maintaining consistent, high-quality database models by enforcing clear naming conventions, data integrity, and efficient design principles.
Core Features & Use Cases
- Standardized Model Definitions: Ensures models are defined with clear naming, appropriate data types, and necessary constraints.
- Data Integrity Enforcement: Implements database-level constraints and model-level validations to prevent data corruption.
- Relationship Management: Guides the proper definition of relationships between models, including cascade behaviors.
- Performance Optimization: Recommends indexing strategies and appropriate data types for efficient querying.
- Use Case: When developing a new feature that requires user authentication, use this skill to define the
User model, ensuring fields like email and password_hash are correctly typed, constrained, and indexed, and that relationships to other models (e.g., Orders) are properly established.
Quick Start
Use the backend models standards skill to define a new User model with an email field that must be unique and not null.