diff --git a/Makefile b/Makefile index a9b989a5..561f5dd4 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ reset-db: schema: #php artisan infyom:scaffold Airlines --fieldsFile=database/schema/airlines.json + php artisan infyom:scaffold Aircraft --fieldsFile=database/schema/aircraft.json echo "" docker: diff --git a/database/schema/aircraft.json b/database/schema/aircraft.json new file mode 100644 index 00000000..d14fce49 --- /dev/null +++ b/database/schema/aircraft.json @@ -0,0 +1,56 @@ +[ + { + "name": "id", + "dbType": "increments", + "htmlType": "", + "validations": "", + "searchable": false, + "fillable": false, + "primary": true, + "inForm": false, + "inIndex": false + }, + { + "name": "icao", + "dbType": "string", + "htmlType": "text", + "validations": "required|max:4", + "searchable": true + }, + { + "name": "name", + "dbType": "string", + "htmlType": "text", + "validations": "required", + "searchable": true + }, + { + "name": "enabled", + "dbType": "boolean", + "htmlType": "checkbox", + "validations": "", + "searchable": false + }, + { + "name": "created_at", + "dbType": "timestamp", + "htmlType": "", + "validations": "", + "searchable": false, + "fillable": false, + "primary": false, + "inForm": false, + "inIndex": false + }, + { + "name": "updated_at", + "dbType": "timestamp", + "htmlType": "", + "validations": "", + "searchable": false, + "fillable": false, + "primary": false, + "inForm": false, + "inIndex": false + } +]