58 lines
1.2 KiB
PHP
58 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Models\PainelSenha;
|
|
|
|
use App\Models\Cadastro\Estabelecimento\CentroCusto;
|
|
use App\Models\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class FilaHistorico extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'painel_senha_fila_historico';
|
|
|
|
protected $fillable = [
|
|
'fila_id',
|
|
'centro_custo_id',
|
|
'opcao_entrada_id',
|
|
'opcao_entrada_destino_id',
|
|
'prioridade_id',
|
|
'status_id',
|
|
'senha',
|
|
'evadido',
|
|
'motivo_evasao',
|
|
'motivo_cancelamento_evasao',
|
|
'finalizado',
|
|
'emitido_em',
|
|
'atualizado_em',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
'deleted_at',
|
|
'deleted_lotacao_id',
|
|
'deleted_centro_custo_id',
|
|
];
|
|
|
|
public function status()
|
|
{
|
|
return $this->belongsTo(Status::class);
|
|
}
|
|
|
|
public function centroCusto()
|
|
{
|
|
return $this->belongsTo(CentroCusto::class);
|
|
}
|
|
|
|
public function getIsAllowedToDeleteAttribute()
|
|
{
|
|
return true;
|
|
}
|
|
}
|