entities array. The command writes modules/<module>/src/entities/<Name>Entity.ts and modules/<module>/tests/entities/<Name>Entity.spec.ts. When --table-name is omitted, the table name defaults to the snake_case pluralized form of the name.
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 the entity class and its test file, then fill in the columns, relations, and table mapping for the database entity.
- Claude
- Codex