30 lines
421 B
PHP
30 lines
421 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
/**
|
|
* Class FlightFields
|
|
* @package App\Models
|
|
*/
|
|
class FlightFields extends BaseModel
|
|
{
|
|
public $table = 'flight_fields';
|
|
|
|
public $fillable = [
|
|
'flight_id',
|
|
'name',
|
|
'value',
|
|
];
|
|
|
|
public static $rules = [];
|
|
|
|
/**
|
|
* Relationships
|
|
*/
|
|
|
|
public function flight()
|
|
{
|
|
return $this->belongsTo(Flight::class, 'flight_id');
|
|
}
|
|
}
|