2017-07-11 08:06:06 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
/**
|
2018-03-19 09:37:35 +08:00
|
|
|
* Class FlightFields
|
2017-07-11 08:06:06 +08:00
|
|
|
* @package App\Models
|
|
|
|
*/
|
2017-12-26 05:19:34 +08:00
|
|
|
class FlightFields extends BaseModel
|
2017-07-11 08:06:06 +08:00
|
|
|
{
|
|
|
|
public $table = 'flight_fields';
|
|
|
|
|
2018-01-04 12:04:51 +08:00
|
|
|
public $fillable = [
|
|
|
|
'flight_id',
|
|
|
|
'name',
|
|
|
|
'value',
|
|
|
|
];
|
2017-07-11 08:06:06 +08:00
|
|
|
|
|
|
|
public static $rules = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Relationships
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function flight()
|
|
|
|
{
|
2018-01-08 23:22:12 +08:00
|
|
|
return $this->belongsTo(Flight::class, 'flight_id');
|
2017-07-11 08:06:06 +08:00
|
|
|
}
|
|
|
|
}
|