38 lines
518 B
PHP
38 lines
518 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
/**
|
|
* Class Flight
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class FlightFields extends BaseModel
|
|
{
|
|
|
|
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');
|
|
}
|
|
|
|
}
|