nanosanteservice/app/Models/NhAuthorizationOfCareReques...

59 lines
1.3 KiB
PHP
Raw Permalink Normal View History

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class NhAuthorizationOfCareRequest
*
* @property int $id
* @property string $request_id
* @property int $issuer_network_agent_id
* @property int $act_id
* @property int $insurance_id
* @property int|null $beneficiary_id
* @property string $to
* @property string $state
* @property int|null $health_care_sheet_id
2022-02-01 10:58:58 +00:00
* @property int|null $validating_agent_id
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @package App\Models
*/
class NhAuthorizationOfCareRequest extends Model
{
protected $table = 'nh_authorization_of_care_requests';
protected $casts = [
'act_id' => 'int',
'insurance_id' => 'int',
'beneficiary_id' => 'int',
'health_care_sheet_id' => 'int',
'validating_agent_id' => 'int'
];
protected $fillable = [
'request_id',
'issuer_network_agent_id',
'act_id',
'insurance_id',
'beneficiary_id',
'to',
2022-02-01 10:58:58 +00:00
'state',
'health_care_sheet_id',
2022-02-01 10:58:58 +00:00
'validating_agent_id'
];
2022-02-01 10:58:58 +00:00
public function insurance()
2022-02-01 10:58:58 +00:00
{
return $this->belongsTo(NhInsurance::class, 'insurance_id');
2022-02-01 10:58:58 +00:00
}
}