Code Generator
Pick a table, configure fields, generate CRUD backend + frontend. Console entry: "System → Code Generator".
Three modes
| Mode | For | Output |
|---|---|---|
| Single table | Plain entities | Standard list page + drawer form + CRUD API |
| Tree table | Hierarchies (departments, categories) | Tree grid, parent picker, recursive API |
| Master-detail | Order-plus-lines style 1:N | Inline detail editing, transactional save |
Flow
- Pick a table (reflected from the database — write your migration first).
- Configure fields: label, widget type, list/search/required flags.
- Preview or download a zip and drop files into place.
The current implementation provides file previews and ZIP downloads; it does not write directly into the current repository. You still need to wire routes, menus, permissions and migrations as described in Extending.
Generated code follows every house convention (response envelope, pagination, tenant_id, permission codes) — compliant by construction.