56 lines
961 B
PHP
56 lines
961 B
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 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');
|
|
}
|
|
}
|