What problem does it solve?
This Skill addresses the challenge of creating and maintaining consistent, robust, and efficient database models by providing clear guidelines on naming conventions, data integrity, appropriate data types, indexing strategies, and relationship definitions.
Core Features & Use Cases
- Consistent Naming: Enforces singular PascalCase for models and plural snake_case for tables.
- Data Integrity: Guides the implementation of database-level constraints (NOT NULL, UNIQUE, CHECK) and model-level validations.
- Performance Optimization: Recommends indexing strategies for foreign keys and frequently queried columns.
- Relationship Management: Details how to explicitly define and configure relationships between models.
- Use Case: When developing a new feature that requires a
Product and Category model, use this Skill to ensure they are defined with appropriate fields, relationships, and database constraints, adhering to established best practices.
Quick Start
Use the Backend Models Standards skill to define a new User model with email and password fields, ensuring email uniqueness and proper timestamping.