Fields can be added from the Entity Options panel (you can open this panel by clicking on the Entity). Vemto supports the majority of Laravel Migrations field types and indexes.
To add a new field, you can click on the Add Field button under the Entity Options. Then, just type the name and choose the type.
{warning} It is highly recommended to use lower case field names
{info} Vemto has a huge internal Fields Library and will try to automatically identify the field type, the faker, and the options based on the field name you wrote. For example, if you type "slug" on the field name, and the field doesn't have a type yet, Vemto automatically will suggest the String type, and will add the "$faker->slug" to the Faker property on the field options.
An example of Vemto automatically suggesting the field type and options
The field options are accessible by clicking on the gears icon right after the field type.
The available options are:
{info} If you change the Mass Assignment strategy from "Fillable" to "Guarded", Vemto automatically takes care of it and all the fields mass assignment will be updated accordingly
{danger} Entities can have only one Primary Key. If you change a field to a primary key type (ID, Big Increments, etc) or mark it as Primary Key, Vemto will remove the primary key constraint from the latest PK and will update all relationships and foreigns that relates to it to point to the new PK
When marking a field as Foreign Key, the following options are available:
{warning} It is highly recommended to follow the Eloquent Model Conventions when creating foreign keys