This commit is contained in:
41
api/app/Models/Regulacao/SolicitacaoTentativaContato.php
Normal file
41
api/app/Models/Regulacao/SolicitacaoTentativaContato.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Regulacao;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
||||
use App\Models\Model;
|
||||
|
||||
class SolicitacaoTentativaContato extends Model
|
||||
{
|
||||
protected $table = 'regulacao_solicitacao_tentativa_contato';
|
||||
|
||||
protected $casts = [
|
||||
'data' => 'datetime:d/m/Y',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'solicitacao_id',
|
||||
'data',
|
||||
'usuario_id',
|
||||
'detalhes',
|
||||
];
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
public function usuario()
|
||||
{
|
||||
return $this->belongsTo(Usuario::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user