45 lines
981 B
PHP
45 lines
981 B
PHP
<?php
|
|
|
|
namespace App\Models\ExameLaboratorial\AgendamentoExame;
|
|
|
|
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
|
use App\Models\ExameLaboratorial\AgendamentoExame\Agendamento;
|
|
use App\Models\Model;
|
|
|
|
class AgendamentoLaudo extends Model
|
|
{
|
|
protected $table = 'exame_laboratorial_agendamento_laudo';
|
|
|
|
protected $casts = [
|
|
'is_enviado_webservice' => 'boolean',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'agendamento_id',
|
|
'arquivo',
|
|
'url',
|
|
'ordem',
|
|
'is_enviado_webservice'
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
'externo_created_usuario_id',
|
|
'externo_updated_usuario_id',
|
|
];
|
|
|
|
public function agendamento()
|
|
{
|
|
return $this->belongsTo(Agendamento::class);
|
|
}
|
|
|
|
public function usuario()
|
|
{
|
|
return $this->belongsTo(Usuario::class);
|
|
}
|
|
}
|