40 lines
949 B
PHP
40 lines
949 B
PHP
<?php
|
|
|
|
namespace App\Models\WebService\Laboratorio\Cliente;
|
|
|
|
use App\Models\ExameLaboratorial\AgendamentoExame\Agendamento AS ExameLaboratorialAgendamento;
|
|
use App\Models\Model;
|
|
|
|
class PedidoMovimentacao extends Model
|
|
{
|
|
protected $table = 'web_service_laboratorio_cliente_pedido_movimentacao';
|
|
|
|
protected $casts = [
|
|
'movimentado_em' => 'datetime:Y-m-d H:i:s',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'conectasus_exame_laboratorial_agendamento_id',
|
|
'status_id',
|
|
'motivo',
|
|
'movimentado_em',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'updated_at',
|
|
'externo_created_usuario_id',
|
|
'externo_updated_usuario_id',
|
|
];
|
|
|
|
public function pedido()
|
|
{
|
|
return $this->belongsTo(ExameLaboratorialAgendamento::class, 'conectasus_exame_laboratorial_agendamento_id');
|
|
}
|
|
|
|
public function status()
|
|
{
|
|
return $this->belongsTo(PedidoStatus::class);
|
|
}
|
|
}
|