Generate CRUD operations for your zopio
project
crud
command generates basic CRUD (Create, Read, Update, Delete) operations for your zopio
project. This command creates the necessary files for handling data operations in your application.
Option | Description |
---|---|
-m, --model <name> | Model name for CRUD operations |
-f, --fields <fields> | Fields in format “name:type,age:number” |
-o, --output <directory> | Output directory for generated files |
-h, --help | Display help for command |
crud
command, the following files will be generated:
crud-schema
- Generate JSON schema and TypeScript interface for a modelcrud-ui
- Generate UI components for CRUD operationscrud-permissions
- Generate permissions configurationcrud-unified
- Generate a complete CRUD setupcrud-validation
- Generate validation schemascrud-testing
- Generate tests for CRUD operations