This commit is contained in:
35
api/app/Models/TransportePaciente/Motivo/Motivo.php
Normal file
35
api/app/Models/TransportePaciente/Motivo/Motivo.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\TransportePaciente\Motivo;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Models\Sigtap\Procedimento;
|
||||
|
||||
class Motivo extends Model
|
||||
{
|
||||
protected $table = 'transporte_paciente_motivo_viagem_procedimento';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'descricao',
|
||||
'grupo_id',
|
||||
'modulo_id',
|
||||
'codigo_procedimento',
|
||||
'regulada',
|
||||
'bloqueado',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function procedimento()
|
||||
{
|
||||
return $this->belongsTo(Procedimento::class, 'codigo_procedimento');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user