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';
|
|
|
|
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
|
|
|
|
public $fillable
|
|
|
|
= [
|
|
|
|
'flight_id',
|
|
|
|
'name',
|
|
|
|
'value',
|
|
|
|
];
|
|
|
|
|
|
|
|
protected $casts = [];
|
|
|
|
|
|
|
|
public static $rules = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Relationships
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function flight()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Models\Flight', 'flight_id');
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|