mikro-orm-entity

Generates and modifies MikroORM entity files in TypeScript with decorators and conventions.

3|2|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/bloominggrace/create-fullstack-service --skill mikro-orm-entity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mikro-orm-entity
Source: https://github.com/bloominggrace/create-fullstack-service/tree/main/.cursor/skills/mikro-orm-entity
Command: npx skills add https://github.com/bloominggrace/create-fullstack-service --skill mikro-orm-entity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and modification of MikroORM entity files, ensuring adherence to best practices and consistent structure.

Core Features & Use Cases

  • Entity Generation: Provides a template for creating new MikroORM entities with essential decorators and fields.
  • Code Consistency: Enforces naming conventions and structural rules for entity and enum files.
  • Use Case: When starting a new feature that requires a new data model, use this Skill to quickly scaffold the corresponding entity file, including primary keys, properties, and timestamps.

Quick Start

Use the mikro-orm-entity skill to create a new entity file named 'user.entity.ts'.

Frequently Asked Questions about mikro-orm-entity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a MikroORM entity file in TypeScript?

To generate a MikroORM entity file in TypeScript, use a template that scaffolds essential decorators, primary keys, properties, and timestamps. This ensures your new data model adheres to best practices and consistent file naming conventions.

What's the best way to scaffold MikroORM entities with enums?

The best way to scaffold MikroORM entities with enums is to use a generation tool that creates associated enum files alongside the entity. This enforces structural rules and naming conventions for both entity and enum files.

How do I enforce best practices for primary keys in MikroORM?

To enforce best practices for primary keys in MikroORM, generate entity files using a template that standardizes primary key decorators and property definitions. This ensures consistent structure across your TypeScript data models.

Can I modify existing MikroORM entity files while maintaining consistent structure?

Yes, you can modify existing MikroORM entity files while maintaining consistent structure by applying rules for property decorators, timestamps, and folder structure conventions. This ensures modifications adhere to best practices.

What folder structure conventions should I follow for MikroORM entities?

For MikroORM entities, follow specific file naming and folder structure conventions enforced by the generation template. This includes naming files like 'user.entity.ts' and placing associated enum files in designated locations.

Do I need a TypeScript environment to create MikroORM entity files?

Yes, you need a TypeScript environment to create MikroORM entity files, as the generated output uses TypeScript decorators and type definitions. This ensures compatibility with your TypeScript-based data models.