更新遷移檔(migration)並新增自動產生的Model
This commit is contained in:
50
app/FlightNegotiation.php
Normal file
50
app/FlightNegotiation.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class FlightNegotiation
|
||||
*
|
||||
* @property string $ID
|
||||
* @property \Carbon\Carbon $negotiationDate
|
||||
* @property string $negotiator
|
||||
* @property \Carbon\Carbon $deliveryDate
|
||||
* @property \Carbon\Carbon $publishDate
|
||||
* @property string $description
|
||||
*
|
||||
* @property \App\Commissioned $commissioned
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class FlightNegotiation extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'FlightNegotiation';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $dates = [
|
||||
'negotiationDate',
|
||||
'deliveryDate',
|
||||
'publishDate'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'negotiator',
|
||||
'deliveryDate',
|
||||
'publishDate',
|
||||
'description'
|
||||
];
|
||||
|
||||
public function commissioned()
|
||||
{
|
||||
return $this->belongsTo(\App\Commissioned::class, 'ID');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user