backend-models

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.

📖 中文导读: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. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: Backend Models description: 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.

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