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