45 lines
778 B
PHP
45 lines
778 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 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');
|
|
}
|
|
}
|