TypeORM Entity Modeling

•
6
•

Defines and optimizes TypeORM database entities using standardized patterns for relations, indexes, and lifecycle hooks.

This skill provides Claude with a comprehensive library of patterns for architecting robust database schemas using TypeORM. It covers essential modeling tasks ranging from basic column definitions and primary key strategies to complex relationship mapping, including self-referencing and many-to-many associations. By utilizing advanced features like Single Table Inheritance, partial indexing, and entity listeners for automated logic, this skill enables developers to build scalable, maintainable, and high-performance TypeScript-based data layers with production-ready best practices.

주요 기능

01Performance optimization through multi-column, unique, and partial indexing patterns.
02Implementation of Entity Inheritance and Embedded Entities for clean code organization.
03Support for advanced column types including PostgreSQL JSONB, arrays, and custom enums.
04Automated data lifecycle management using BeforeInsert, AfterLoad, and Update listeners.
05Comprehensive relationship mapping including One-to-One, Many-to-Many, and self-referencing models.
066 GitHub stars

사용 사례

01Refactoring existing database structures into optimized TypeORM entities with proper indexing.
02Designing complex relational database schemas for new TypeScript backend applications.
03Implementing automated data security measures like password hashing via entity lifecycle hooks.