add separate flight_fields table and move over to flight_field_values

This commit is contained in:
Nabeel Shahzad
2018-03-20 13:06:06 -05:00
parent a9454c319a
commit 485c6e86bb
17 changed files with 147 additions and 45 deletions

View 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');
}
}