49 lines
946 B
PHP
49 lines
946 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\Pivot;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
/**
|
|
* Class NhInsurancesHavingRight
|
|
*
|
|
* @property int $id
|
|
* @property int $insurance_subscription_id
|
|
* @property int $insurance_id
|
|
* @property int $having_right_id
|
|
* @property Carbon $deleted_at
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class NhInsurancesHavingRight extends Pivot
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'nh_insurances_having_rights';
|
|
|
|
protected $dates = [
|
|
'birthdate'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'insurance_subscription_id',
|
|
'insurance_id',
|
|
'having_right_id',
|
|
];
|
|
|
|
public function beneficiary()
|
|
{
|
|
return $this->hasOne(NhHavingRight::class, 'id', 'having_right_id');
|
|
}
|
|
|
|
}
|