Skip to main content
Scaffolds a TypeORM entity class and its test file into the target module, then registers the class in the entities array of the module. It writes modules/<module>/src/entities/<Name>Entity.ts and modules/<module>/tests/entities/<Name>Entity.spec.ts. The table name defaults to the snake_case pluralized form of the name when --table-name is omitted.

Usage

ooneex entity:create [options]

Examples

ooneex entity:create
ooneex entity:create --name=Product
ooneex entity:create --name=UserProfile --module=auth --table-name=user_profiles

Options

OptionDescriptionDefault
--nameResource name (the Entity suffix is appended automatically).Prompted if omitted
--moduleTarget module.shared
--table-nameDatabase table name.snake_case pluralized name
--overrideOverwrite an existing file without confirmation.false

AI Skill

This command ships a matching entity:create skill. Your AI agent uses it to generate a new TypeORM entity class and its test file, then complete the columns, relations, and table mapping for a database entity.
ooneex claude:init