forked from kol/BlogMatch
90 lines
1.8 KiB
PHP
90 lines
1.8 KiB
PHP
<?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');
|
|
}
|
|
}
|