backend-models

TorbenMerrald's avatarfrom TorbenMerrald

Define and structure database models and entities following data modeling best practices. Use this skill when creating or modifying model classes, entities, or database schema definitions. Use this skill when defining model relationships, associations, or foreign keys. Use this skill when implementing model validations, constraints, or data integrity rules. Use this skill when adding timestamps, indexes, or database-level constraints to models. Use this skill when choosing appropriate data types for model attributes. Use this skill when working with ORM model files, entity definitions, or database schema classes. Use this skill when establishing naming conventions for models and database tables.

⭐1stars🔀0forks📁View on GitHub🕐Updated Jan 9, 2026

When & Why to Use This Skill

This Claude skill streamlines backend development by providing expert guidance on defining and structuring database models and entities. It ensures that database schemas follow industry best practices for data integrity, performance optimization, and maintainability, specifically tailored for ORM frameworks and entity-relationship management.

Use Cases

  • Designing complex relational database schemas, including the definition of one-to-many, many-to-many, and polymorphic associations.
  • Implementing robust data validation rules and database-level constraints to ensure high-quality data entry and consistency.
  • Optimizing database query performance by strategically adding indexes and selecting the most efficient data types for model attributes.
  • Standardizing naming conventions and entity structures across ORM model files to improve codebase readability and team collaboration.
  • Configuring database-level behaviors such as timestamps (created_at/updated_at) and foreign key cascade actions.
nameBackend Models
descriptionDefine and structure database models and entities following data modeling best practices. Use this skill when creating or modifying model classes, entities, or database schema definitions. Use this skill when defining model relationships, associations, or foreign keys. Use this skill when implementing model validations, constraints, or data integrity rules. Use this skill when adding timestamps, indexes, or database-level constraints to models. Use this skill when choosing appropriate data types for model attributes. Use this skill when working with ORM model files, entity definitions, or database schema classes. Use this skill when establishing naming conventions for models and database tables.

Backend Models

When to use this skill

  • When creating or modifying database model classes or entity definitions
  • When defining relationships between models (one-to-many, many-to-many, belongs-to, etc.)
  • When implementing model-level validations and database constraints
  • When adding or modifying model attributes and choosing appropriate data types
  • When adding timestamps (created_at, updated_at) to models
  • When creating indexes on model fields for query performance
  • When establishing foreign key relationships and cascade behaviors
  • When working with ORM model files or database entity classes
  • When naming models and corresponding database tables
  • When balancing database normalization with query performance needs

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend models.

Instructions

For details, refer to the information provided in this file: backend models