Code generator M2
install
go to https://github.com/mygento/jeeves/releases/latest
download phar and then
sudo mv jeeves.phar /usr/local/bin/jeeves
sample
look in .jeeves.phpunit_v1.yaml
or .jeeves.phpunit_v0.yaml
- Root Level
Property | Description | Example |
---|---|---|
settings | Global Settings |
|
hash, [a-Z] | Vendor Name: [Module] | Mygento |
- Module Level
Property | Description |
---|---|
settings | Module Settings |
shipping | Module Shipping |
entities | Module Entity List |
- Entity Level
Property | Description | Required | Default |
---|---|---|---|
settings | Entity Settings |
N | |
columns | Entity Columns |
Y | |
indexes | Entity Indexes |
N | |
fk | Entity Fk |
N | |
tablename | String | N | %vendor%%module%%entity% |
comment | String | N | |
api | Boolean | N | false |
graphql | Boolean | N | false |
cacheable | Boolean | N | false |
cache_tag | String | N | |
per_store | Boolean | N | false |
- Columns Level
Property | Description | Required | Default | Comment |
---|---|---|---|---|
type | String | Y | ||
pk | Boolean | N | false | |
identity | Boolean | N | false | Auto Increment |
unsigned | Boolean | N | false | |
comment | String | N | ||
nullable | Boolean | N | true | |
length | Integer | N | ||
default | String | N | ||
on_update | Boolean | N | false |
- Indexes Level
Property | Description | Required |
---|---|---|
type | String | Y |
columns | String[] | Y |
- Fk Level
Property | Description | Required |
---|---|---|
column | String | Y |
referenceTable | String | Y |
referenceColumn | String | Y |
indexName | String | Y |
- Settings level
Property | Description | Required | Default | Comment |
---|---|---|---|---|
php_version | String | N | PHP_VERSION | |
admin_route | String | N | %module% | |
version | string | N | 2.4 | Magento version |