40 lines
897 B
PHP
40 lines
897 B
PHP
<?php
|
|
|
|
namespace App\Models\ProntoAtendimento\ReaberturaAtendimento;
|
|
use App\Models\ProntoAtendimento\Atendimento\Atendimento;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ReaberturaAtendimento extends Model
|
|
{
|
|
protected $table = 'pronto_atendimento_faa';
|
|
|
|
protected $casts = [
|
|
'created_at' => 'datetime:d/m/Y H:i',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'created_at',
|
|
'id',
|
|
'finalizado',
|
|
'reaberto_em',
|
|
'reabertura_usuario_id',
|
|
'desfecho_id',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'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 atendimentos()
|
|
{
|
|
return $this->hasMany(Atendimento::class, 'faa_id');
|
|
}
|
|
}
|