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
Examples
Options
| Option | Description | Default |
|---|---|---|
--name | Resource name (the Entity suffix is appended automatically). | Prompted if omitted |
--module | Target module. | shared |
--table-name | Database table name. | snake_case pluralized name |
--override | Overwrite an existing file without confirmation. | false |
AI Skill
This command ships a matchingentity: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.
- Claude
- Codex