Add score to model and fields
This commit is contained in:
parent
531e86f5e7
commit
5cd9c608a7
@ -42,6 +42,7 @@ class FileRequest extends FormRequest
|
|||||||
'route' => 'nullable',
|
'route' => 'nullable',
|
||||||
'notes' => 'nullable',
|
'notes' => 'nullable',
|
||||||
'source_name' => 'nullable',
|
'source_name' => 'nullable',
|
||||||
|
'score' => 'nullable|integer',
|
||||||
'landing_rate' => 'nullable|numeric',
|
'landing_rate' => 'nullable|numeric',
|
||||||
'flight_type' => 'nullable|integer',
|
'flight_type' => 'nullable|integer',
|
||||||
'block_off_time' => 'nullable|date',
|
'block_off_time' => 'nullable|date',
|
||||||
|
@ -37,6 +37,7 @@ class PrefileRequest extends FormRequest
|
|||||||
'block_fuel' => 'nullable|numeric',
|
'block_fuel' => 'nullable|numeric',
|
||||||
'route' => 'nullable',
|
'route' => 'nullable',
|
||||||
'notes' => 'nullable',
|
'notes' => 'nullable',
|
||||||
|
'score' => 'nullable|integer',
|
||||||
'flight_type' => 'nullable|integer',
|
'flight_type' => 'nullable|integer',
|
||||||
'block_off_time' => 'nullable|date',
|
'block_off_time' => 'nullable|date',
|
||||||
'block_on_time' => 'nullable|date',
|
'block_on_time' => 'nullable|date',
|
||||||
|
@ -47,7 +47,7 @@ class UpdateRequest extends FormRequest
|
|||||||
'block_on_time' => 'nullable|date',
|
'block_on_time' => 'nullable|date',
|
||||||
'created_at' => 'nullable|date',
|
'created_at' => 'nullable|date',
|
||||||
'status' => 'nullable',
|
'status' => 'nullable',
|
||||||
'source_name' => 'nullable',
|
'score' => 'nullable|integer',
|
||||||
|
|
||||||
# See if the fare objects are included and formatted properly
|
# See if the fare objects are included and formatted properly
|
||||||
'fares' => 'nullable|array',
|
'fares' => 'nullable|array',
|
||||||
|
@ -33,6 +33,7 @@ use PhpUnitsOfMeasure\Exception\NonStringUnitName;
|
|||||||
* @property integer block_time
|
* @property integer block_time
|
||||||
* @property integer flight_time In minutes
|
* @property integer flight_time In minutes
|
||||||
* @property integer planned_flight_time
|
* @property integer planned_flight_time
|
||||||
|
* @property integer score
|
||||||
* @property User user
|
* @property User user
|
||||||
* @property Flight|null flight
|
* @property Flight|null flight
|
||||||
* @property Collection fields
|
* @property Collection fields
|
||||||
@ -74,6 +75,7 @@ class Pirep extends Model
|
|||||||
'landing_rate',
|
'landing_rate',
|
||||||
'route',
|
'route',
|
||||||
'notes',
|
'notes',
|
||||||
|
'score',
|
||||||
'source',
|
'source',
|
||||||
'source_name',
|
'source_name',
|
||||||
'flight_type',
|
'flight_type',
|
||||||
@ -100,6 +102,7 @@ class Pirep extends Model
|
|||||||
'block_fuel' => 'float',
|
'block_fuel' => 'float',
|
||||||
'fuel_used' => 'float',
|
'fuel_used' => 'float',
|
||||||
'landing_rate' => 'float',
|
'landing_rate' => 'float',
|
||||||
|
'score' => 'integer',
|
||||||
'source' => 'integer',
|
'source' => 'integer',
|
||||||
'state' => 'integer',
|
'state' => 'integer',
|
||||||
'block_off_time' => 'datetime',
|
'block_off_time' => 'datetime',
|
||||||
|
Loading…
Reference in New Issue
Block a user