This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\ExameImagem\Agendamento;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
||||
use App\Models\Model;
|
||||
use App\Models\Parametrizacao\Exame\Exame;
|
||||
|
||||
class AgendamentoHistoricoExclusao extends Model
|
||||
{
|
||||
protected $table = 'exame_imagem_agendamento_historico_exclusao';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'agendamento_id',
|
||||
'agendamento_agendador_id',
|
||||
'data_hora_criacao',
|
||||
'paciente_id',
|
||||
'agendamento_numero',
|
||||
'exame_id',
|
||||
'data_hora_exclusao',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'data_hora_criacao' => 'datetime:d/m/Y H:i:s',
|
||||
'data_hora_exclusao' => 'datetime:d/m/Y H:i:s',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function usuario()
|
||||
{
|
||||
return $this->belongsTo(Usuario::class);
|
||||
}
|
||||
|
||||
public function exame()
|
||||
{
|
||||
return $this->belongsTo(Exame::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user