This commit is contained in:
39
api/app/Models/WebService/Laboratorio/Cliente/Exame.php
Normal file
39
api/app/Models/WebService/Laboratorio/Cliente/Exame.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\WebService\Laboratorio\Cliente;
|
||||
|
||||
use App\Models\Parametrizacao\Exame\Exame as CadastroExame;
|
||||
use App\Models\Model;
|
||||
|
||||
class Exame extends Model
|
||||
{
|
||||
protected $table = 'web_service_laboratorio_cliente_exame';
|
||||
|
||||
protected $fillable = [
|
||||
'laboratorio_id',
|
||||
'conectasus_exame_id',
|
||||
'nome',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'laboratorio_id',
|
||||
'created_at',
|
||||
'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 laboratorio()
|
||||
{
|
||||
return $this->belongsTo(Laboratorio::class);
|
||||
}
|
||||
|
||||
public function conectasusExame()
|
||||
{
|
||||
return $this->belongsTo(CadastroExame::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user