更新遷移檔(migration)並新增自動產生的Model
This commit is contained in:
126
app/Commissioned.php
Normal file
126
app/Commissioned.php
Normal file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Commissioned
|
||||
*
|
||||
* @property string $ID
|
||||
* @property string $TCID
|
||||
* @property string $RID
|
||||
* @property \Carbon\Carbon $commissionedDate
|
||||
* @property string $pointOfArtical
|
||||
* @property string $amountOfwords
|
||||
* @property string $numOfImgesRequired
|
||||
* @property int $FlightNegotiationStatus
|
||||
* @property int $PriceNegotiationStatus
|
||||
* @property int $caseExecutionStatus
|
||||
* @property string $commentOfReceiver
|
||||
* @property string $commentOfCaseBuilder
|
||||
* @property string $reasonOfTerminate
|
||||
* @property \Carbon\Carbon $terminationDate
|
||||
* @property \Carbon\Carbon $PaymentTime
|
||||
* @property string $paymentMethod
|
||||
* @property string $bankName
|
||||
* @property int $amountOfPay
|
||||
* @property string $AccuountNumber
|
||||
* @property string $MailID
|
||||
* @property int $caseDifficulty
|
||||
* @property int $receiverRating
|
||||
* @property int $casebuilderRating
|
||||
*
|
||||
* @property \App\TheCase $the_case
|
||||
* @property \App\Receiver $receiver
|
||||
* @property \Illuminate\Database\Eloquent\Collection $flight_negotiations
|
||||
* @property \Illuminate\Database\Eloquent\Collection $price_negotiations
|
||||
* @property \Illuminate\Database\Eloquent\Collection $proof_readings
|
||||
* @property \Illuminate\Database\Eloquent\Collection $release_manuscripts
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Commissioned extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'Commissioned';
|
||||
protected $primaryKey = 'ID';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'FlightNegotiationStatus' => 'int',
|
||||
'PriceNegotiationStatus' => 'int',
|
||||
'caseExecutionStatus' => 'int',
|
||||
'amountOfPay' => 'int',
|
||||
'caseDifficulty' => 'int',
|
||||
'receiverRating' => 'int',
|
||||
'casebuilderRating' => 'int'
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'commissionedDate',
|
||||
'terminationDate',
|
||||
'PaymentTime'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'TCID',
|
||||
'RID',
|
||||
'commissionedDate',
|
||||
'pointOfArtical',
|
||||
'amountOfwords',
|
||||
'numOfImgesRequired',
|
||||
'FlightNegotiationStatus',
|
||||
'PriceNegotiationStatus',
|
||||
'caseExecutionStatus',
|
||||
'commentOfReceiver',
|
||||
'commentOfCaseBuilder',
|
||||
'reasonOfTerminate',
|
||||
'terminationDate',
|
||||
'PaymentTime',
|
||||
'paymentMethod',
|
||||
'bankName',
|
||||
'amountOfPay',
|
||||
'AccuountNumber',
|
||||
'MailID',
|
||||
'caseDifficulty',
|
||||
'receiverRating',
|
||||
'casebuilderRating'
|
||||
];
|
||||
|
||||
public function the_case()
|
||||
{
|
||||
return $this->belongsTo(\App\TheCase::class, 'TCID');
|
||||
}
|
||||
|
||||
public function receiver()
|
||||
{
|
||||
return $this->belongsTo(\App\Receiver::class, 'RID');
|
||||
}
|
||||
|
||||
public function flight_negotiations()
|
||||
{
|
||||
return $this->hasMany(\App\FlightNegotiation::class, 'ID');
|
||||
}
|
||||
|
||||
public function price_negotiations()
|
||||
{
|
||||
return $this->hasMany(\App\PriceNegotiation::class, 'ID');
|
||||
}
|
||||
|
||||
public function proof_readings()
|
||||
{
|
||||
return $this->hasMany(\App\ProofReading::class, 'ID');
|
||||
}
|
||||
|
||||
public function release_manuscripts()
|
||||
{
|
||||
return $this->hasMany(\App\ReleaseManuscript::class, 'ID');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user