2017-07-11 08:06:06 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class Flight
|
|
|
|
*
|
|
|
|
* @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
|
|
|
|
|
|
|
protected $casts = [];
|
|
|
|
|
|
|
|
public static $rules = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Relationships
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function flight()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Models\Flight', 'flight_id');
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|