add separate flight_fields table and move over to flight_field_values
This commit is contained in:
31
app/Models/FlightFieldValue.php
Normal file
31
app/Models/FlightFieldValue.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Interfaces\Model;
|
||||
|
||||
/**
|
||||
* Class FlightFieldValue
|
||||
* @package App\Models
|
||||
*/
|
||||
class FlightFieldValue extends Model
|
||||
{
|
||||
public $table = 'flight_field_values';
|
||||
|
||||
public $fillable = [
|
||||
'flight_id',
|
||||
'name',
|
||||
'value',
|
||||
];
|
||||
|
||||
public static $rules = [];
|
||||
|
||||
/**
|
||||
* Relationships
|
||||
*/
|
||||
|
||||
public function flight()
|
||||
{
|
||||
return $this->belongsTo(Flight::class, 'flight_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user