Generators
Scaffold generators keep runtime and repository structure consistent.Typical flow
make:modelmake:migrationmake:controllermake:servicemake:scenario --mongoor--test
What each generator produces
make:model
Creates a model class under:
src/app/models/<Name>.ts- or
src/test/database/models/<Name>.tswith--test
- table name
- connection name
- schema skeleton
- relation examples
- validation hooks and model events stubs
make:controller
Creates:
src/app/controllers/<Name>Controller.ts- or
src/test/controllers/<Name>Controller.ts
indexshowstoreupdatedestroy
--soft, also generates:
restore
make:service
Creates:
src/app/services/<Name>Service.ts- or
src/test/services/<Name>Service.ts
allfindcreateupdatedeleterestore
make:scenario
Creates coordinated app or test artifacts for a full preset:
- models
- factories
- migrations
- seeders
- optional controllers
- optional services