This commit is contained in:
45
api/app/Models/Manutencao/SolicitacaoStatusHistorico.php
Normal file
45
api/app/Models/Manutencao/SolicitacaoStatusHistorico.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Manutencao;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class SolicitacaoStatusHistorico extends Model
|
||||
{
|
||||
protected $table = 'manutencao_solicitacao_status_historico';
|
||||
|
||||
protected $fillable = [
|
||||
'solicitacao_id',
|
||||
'status_id',
|
||||
'origem_id',
|
||||
'usuario_id',
|
||||
'infraestrutura_id',
|
||||
'mensagem',
|
||||
'prestador_id',
|
||||
'data_agendamento',
|
||||
'os_prestador',
|
||||
'usuario_atendente_id',
|
||||
'infraestrutura_atendente_id',
|
||||
'custo',
|
||||
'infraestrtura_finalizador_id',
|
||||
'usuario_finalizador_id',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'data_agendamento' => 'datetime:d/m/Y',
|
||||
];
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function solicitacao()
|
||||
{
|
||||
|
||||
return $this->belongsTo(Solicitacao::class, 'solicitacao_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user