更新遷移檔(migration)並新增自動產生的Model
This commit is contained in:
37
app/Area.php
Normal file
37
app/Area.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Area
|
||||
*
|
||||
* @property int $AID
|
||||
* @property string $name
|
||||
*
|
||||
* @property \Illuminate\Database\Eloquent\Collection $manages
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Area extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'Area';
|
||||
protected $primaryKey = 'AID';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'name'
|
||||
];
|
||||
|
||||
public function manages()
|
||||
{
|
||||
return $this->hasMany(\App\Manage::class, 'AID');
|
||||
}
|
||||
}
|
||||
32
app/Bank.php
Normal file
32
app/Bank.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Bank
|
||||
*
|
||||
* @property int $ID
|
||||
* @property string $BankNum
|
||||
* @property string $BankName
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Bank extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'Bank';
|
||||
protected $primaryKey = 'ID';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'BankNum',
|
||||
'BankName'
|
||||
];
|
||||
}
|
||||
42
app/BeClassifiedA.php
Normal file
42
app/BeClassifiedA.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class BeClassifiedA
|
||||
*
|
||||
* @property string $CBID
|
||||
* @property int $CID
|
||||
*
|
||||
* @property \App\TheClass $the_class
|
||||
* @property \App\CaseBuilder $case_builder
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class BeClassifiedA extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'CID' => 'int'
|
||||
];
|
||||
|
||||
public function the_class()
|
||||
{
|
||||
return $this->belongsTo(\App\TheClass::class, 'CID');
|
||||
}
|
||||
|
||||
public function case_builder()
|
||||
{
|
||||
return $this->belongsTo(\App\CaseBuilder::class, 'CBID');
|
||||
}
|
||||
}
|
||||
55
app/Belong.php
Normal file
55
app/Belong.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Belong
|
||||
*
|
||||
* @property string $RID
|
||||
* @property int $CID
|
||||
* @property \Carbon\Carbon $startExclussiveDate
|
||||
* @property \Carbon\Carbon $endExclussiveDate
|
||||
*
|
||||
* @property \App\Receiver $receiver
|
||||
* @property \App\TheClass $the_class
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Belong extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'Belong';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'CID' => 'int'
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'startExclussiveDate',
|
||||
'endExclussiveDate'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'startExclussiveDate',
|
||||
'endExclussiveDate'
|
||||
];
|
||||
|
||||
public function receiver()
|
||||
{
|
||||
return $this->belongsTo(\App\Receiver::class, 'RID');
|
||||
}
|
||||
|
||||
public function the_class()
|
||||
{
|
||||
return $this->belongsTo(\App\TheClass::class, 'CID');
|
||||
}
|
||||
}
|
||||
89
app/CaseBuilder.php
Normal file
89
app/CaseBuilder.php
Normal file
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class CaseBuilder
|
||||
*
|
||||
* @property string $CBID
|
||||
* @property string $password
|
||||
* @property string $companyName
|
||||
* @property string $companyPhone
|
||||
* @property string $companyAddress
|
||||
* @property string $uniformNumber
|
||||
* @property string $contact
|
||||
* @property string $contactNumber
|
||||
* @property string $contactEmail
|
||||
* @property string $isProxy
|
||||
* @property string $frequency
|
||||
* @property string $payment
|
||||
* @property \Carbon\Carbon $startServiceDate
|
||||
* @property \Carbon\Carbon $endServiceDate
|
||||
* @property int $verifyStatus
|
||||
*
|
||||
* @property \Illuminate\Database\Eloquent\Collection $be_classified_as
|
||||
* @property \Illuminate\Database\Eloquent\Collection $preferences
|
||||
* @property \Illuminate\Database\Eloquent\Collection $the_cases
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class CaseBuilder extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'CaseBuilder';
|
||||
protected $primaryKey = 'CBID';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'verifyStatus' => 'int'
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'startServiceDate',
|
||||
'endServiceDate'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'password'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'password',
|
||||
'companyName',
|
||||
'companyPhone',
|
||||
'companyAddress',
|
||||
'uniformNumber',
|
||||
'contact',
|
||||
'contactNumber',
|
||||
'contactEmail',
|
||||
'isProxy',
|
||||
'frequency',
|
||||
'payment',
|
||||
'startServiceDate',
|
||||
'endServiceDate',
|
||||
'verifyStatus'
|
||||
];
|
||||
|
||||
public function be_classified_as()
|
||||
{
|
||||
return $this->hasMany(\App\BeClassifiedA::class, 'CBID');
|
||||
}
|
||||
|
||||
public function preferences()
|
||||
{
|
||||
return $this->hasMany(\App\Preference::class, 'CBID');
|
||||
}
|
||||
|
||||
public function the_cases()
|
||||
{
|
||||
return $this->hasMany(\App\TheCase::class, 'CBID');
|
||||
}
|
||||
}
|
||||
26
app/Choose.php
Normal file
26
app/Choose.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Choose
|
||||
*
|
||||
* @property string $RID
|
||||
* @property string $TCID
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Choose extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'Choose';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
}
|
||||
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');
|
||||
}
|
||||
}
|
||||
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');
|
||||
}
|
||||
}
|
||||
75
app/Manage.php
Normal file
75
app/Manage.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Manage
|
||||
*
|
||||
* @property string $RID
|
||||
* @property int $AID
|
||||
* @property string $URL
|
||||
* @property \Carbon\Carbon $createdDate
|
||||
* @property int $amountOfFans
|
||||
* @property int $avgNumOfVisitorsPerDay
|
||||
* @property int $numOfEntriesPerPage
|
||||
* @property int $startOfCooperationFee
|
||||
* @property int $endOfCooperationFee
|
||||
* @property \Carbon\Carbon $startOfexecutionTime
|
||||
* @property \Carbon\Carbon $endOfexecutionTime
|
||||
*
|
||||
* @property \App\Receiver $receiver
|
||||
* @property \App\Area $area
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Manage extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'Manage';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'AID' => 'int',
|
||||
'amountOfFans' => 'int',
|
||||
'avgNumOfVisitorsPerDay' => 'int',
|
||||
'numOfEntriesPerPage' => 'int',
|
||||
'startOfCooperationFee' => 'int',
|
||||
'endOfCooperationFee' => 'int'
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'createdDate',
|
||||
'startOfexecutionTime',
|
||||
'endOfexecutionTime'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'URL',
|
||||
'createdDate',
|
||||
'amountOfFans',
|
||||
'avgNumOfVisitorsPerDay',
|
||||
'numOfEntriesPerPage',
|
||||
'startOfCooperationFee',
|
||||
'endOfCooperationFee',
|
||||
'startOfexecutionTime',
|
||||
'endOfexecutionTime'
|
||||
];
|
||||
|
||||
public function receiver()
|
||||
{
|
||||
return $this->belongsTo(\App\Receiver::class, 'RID');
|
||||
}
|
||||
|
||||
public function area()
|
||||
{
|
||||
return $this->belongsTo(\App\Area::class, 'AID');
|
||||
}
|
||||
}
|
||||
44
app/Preference.php
Normal file
44
app/Preference.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Preference
|
||||
*
|
||||
* @property string $CBID
|
||||
* @property string $RID
|
||||
* @property string $description
|
||||
*
|
||||
* @property \App\CaseBuilder $case_builder
|
||||
* @property \App\Receiver $receiver
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Preference extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'Preference';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'description'
|
||||
];
|
||||
|
||||
public function case_builder()
|
||||
{
|
||||
return $this->belongsTo(\App\CaseBuilder::class, 'CBID');
|
||||
}
|
||||
|
||||
public function receiver()
|
||||
{
|
||||
return $this->belongsTo(\App\Receiver::class, 'RID');
|
||||
}
|
||||
}
|
||||
55
app/PriceNegotiation.php
Normal file
55
app/PriceNegotiation.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class PriceNegotiation
|
||||
*
|
||||
* @property string $ID
|
||||
* @property \Carbon\Carbon $negotiationDate
|
||||
* @property string $negotiator
|
||||
* @property string $itemName
|
||||
* @property int $itemValue
|
||||
* @property int $price
|
||||
* @property string $description
|
||||
*
|
||||
* @property \App\Commissioned $commissioned
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class PriceNegotiation extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'PriceNegotiation';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'itemValue' => 'int',
|
||||
'price' => 'int'
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'negotiationDate'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'negotiator',
|
||||
'itemName',
|
||||
'itemValue',
|
||||
'price',
|
||||
'description'
|
||||
];
|
||||
|
||||
public function commissioned()
|
||||
{
|
||||
return $this->belongsTo(\App\Commissioned::class, 'ID');
|
||||
}
|
||||
}
|
||||
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');
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
if ($this->app->environment() !== 'production') {
|
||||
$this->app->register(\Way\Generators\GeneratorsServiceProvider::class);
|
||||
$this->app->register(\Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider::class);
|
||||
$this->app->register(\Reliese\Coders\CodersServiceProvider::class);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
86
app/Receiver.php
Normal file
86
app/Receiver.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Receiver
|
||||
*
|
||||
* @property string $RID
|
||||
* @property string $password
|
||||
* @property string $name
|
||||
* @property string $nickName
|
||||
* @property string $phone
|
||||
* @property string $email
|
||||
* @property string $address
|
||||
* @property string $indroduction
|
||||
* @property string $photoPath
|
||||
* @property string $bankName
|
||||
* @property string $bankID
|
||||
* @property int $verifyStatus
|
||||
* @property string $bankLocation
|
||||
*
|
||||
* @property \Illuminate\Database\Eloquent\Collection $belongs
|
||||
* @property \Illuminate\Database\Eloquent\Collection $commissioneds
|
||||
* @property \Illuminate\Database\Eloquent\Collection $manages
|
||||
* @property \Illuminate\Database\Eloquent\Collection $preferences
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Receiver extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'Receiver';
|
||||
protected $primaryKey = 'RID';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'verifyStatus' => 'int'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'password'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'password',
|
||||
'name',
|
||||
'nickName',
|
||||
'phone',
|
||||
'email',
|
||||
'address',
|
||||
'indroduction',
|
||||
'photoPath',
|
||||
'bankName',
|
||||
'bankID',
|
||||
'verifyStatus',
|
||||
'bankLocation'
|
||||
];
|
||||
|
||||
public function belongs()
|
||||
{
|
||||
return $this->hasMany(\App\Belong::class, 'RID');
|
||||
}
|
||||
|
||||
public function commissioneds()
|
||||
{
|
||||
return $this->hasMany(\App\Commissioned::class, 'RID');
|
||||
}
|
||||
|
||||
public function manages()
|
||||
{
|
||||
return $this->hasMany(\App\Manage::class, 'RID');
|
||||
}
|
||||
|
||||
public function preferences()
|
||||
{
|
||||
return $this->hasMany(\App\Preference::class, 'RID');
|
||||
}
|
||||
}
|
||||
49
app/ReleaseManuscript.php
Normal file
49
app/ReleaseManuscript.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 ReleaseManuscript
|
||||
*
|
||||
* @property string $ID
|
||||
* @property \Carbon\Carbon $releaseDate
|
||||
* @property string $manuscriptUrl
|
||||
* @property string $suggestions
|
||||
* @property \Carbon\Carbon $replyTime
|
||||
* @property string $description
|
||||
*
|
||||
* @property \App\Commissioned $commissioned
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class ReleaseManuscript extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'ReleaseManuscript';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $dates = [
|
||||
'releaseDate',
|
||||
'replyTime'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'manuscriptUrl',
|
||||
'suggestions',
|
||||
'replyTime',
|
||||
'description'
|
||||
];
|
||||
|
||||
public function commissioned()
|
||||
{
|
||||
return $this->belongsTo(\App\Commissioned::class, 'ID');
|
||||
}
|
||||
}
|
||||
65
app/TheCase.php
Normal file
65
app/TheCase.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class TheCase
|
||||
*
|
||||
* @property string $TCID
|
||||
* @property string $CBID
|
||||
* @property string $name
|
||||
* @property string $class
|
||||
* @property string $description
|
||||
* @property int $specialPrice
|
||||
* @property int $price
|
||||
* @property string $howToBuy
|
||||
* @property \Carbon\Carbon $releaseDate
|
||||
*
|
||||
* @property \App\CaseBuilder $case_builder
|
||||
* @property \Illuminate\Database\Eloquent\Collection $commissioneds
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class TheCase extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'TheCase';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'specialPrice' => 'int',
|
||||
'price' => 'int'
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'releaseDate'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'class',
|
||||
'description',
|
||||
'specialPrice',
|
||||
'price',
|
||||
'howToBuy',
|
||||
'releaseDate'
|
||||
];
|
||||
|
||||
public function case_builder()
|
||||
{
|
||||
return $this->belongsTo(\App\CaseBuilder::class, 'CBID');
|
||||
}
|
||||
|
||||
public function commissioneds()
|
||||
{
|
||||
return $this->hasMany(\App\Commissioned::class, 'TCID');
|
||||
}
|
||||
}
|
||||
43
app/TheClass.php
Normal file
43
app/TheClass.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class TheClass
|
||||
*
|
||||
* @property int $CID
|
||||
* @property string $name
|
||||
*
|
||||
* @property \Illuminate\Database\Eloquent\Collection $be_classified_as
|
||||
* @property \Illuminate\Database\Eloquent\Collection $belongs
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class TheClass extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'TheClass';
|
||||
protected $primaryKey = 'CID';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'name'
|
||||
];
|
||||
|
||||
public function be_classified_as()
|
||||
{
|
||||
return $this->hasMany(\App\BeClassifiedA::class, 'CID');
|
||||
}
|
||||
|
||||
public function belongs()
|
||||
{
|
||||
return $this->hasMany(\App\Belong::class, 'CID');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user