2017-07-11 08:06:06 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
use App\Interfaces\Model;
|
|
|
|
|
2017-07-11 08:06:06 +08:00
|
|
|
/**
|
2018-03-21 02:06:06 +08:00
|
|
|
* Class FlightFieldValue
|
2018-03-21 02:47:47 +08:00
|
|
|
* @property string flight_id
|
|
|
|
* @property string name
|
|
|
|
* @property string value
|
2017-07-11 08:06:06 +08:00
|
|
|
* @package App\Models
|
|
|
|
*/
|
2018-03-21 02:06:06 +08:00
|
|
|
class FlightFieldValue extends Model
|
2017-07-11 08:06:06 +08:00
|
|
|
{
|
2018-03-21 02:06:06 +08:00
|
|
|
public $table = 'flight_field_values';
|
2017-07-11 08:06:06 +08:00
|
|
|
|
2018-03-21 08:40:19 +08:00
|
|
|
protected $fillable = [
|
2018-01-04 12:04:51 +08:00
|
|
|
'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
|
|
|
}
|
|
|
|
}
|