This commit is contained in:
32
api/app/Models/Log/AcessoSistema.php
Normal file
32
api/app/Models/Log/AcessoSistema.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Log;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
||||
use App\Models\Model;
|
||||
|
||||
class AcessoSistema extends Model
|
||||
{
|
||||
protected $table = 'log_acesso_sistema';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'usuario_id',
|
||||
'status_id',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function usuario()
|
||||
{
|
||||
return $this->belongsTo(Usuario::class);
|
||||
}
|
||||
|
||||
public function status()
|
||||
{
|
||||
return $this->belongsTo(AcessoSistemaStatus::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user