Aircraft schema added
This commit is contained in:
1
Makefile
1
Makefile
@@ -24,6 +24,7 @@ reset-db:
|
|||||||
|
|
||||||
schema:
|
schema:
|
||||||
#php artisan infyom:scaffold Airlines --fieldsFile=database/schema/airlines.json
|
#php artisan infyom:scaffold Airlines --fieldsFile=database/schema/airlines.json
|
||||||
|
php artisan infyom:scaffold Aircraft --fieldsFile=database/schema/aircraft.json
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
|
|||||||
56
database/schema/aircraft.json
Normal file
56
database/schema/aircraft.json
Normal file
@@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user