This commit is contained in:
42
api/app/Models/Almoxarifado/SaidaBaixa.php
Normal file
42
api/app/Models/Almoxarifado/SaidaBaixa.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Almoxarifado;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
||||
use App\Models\Model;
|
||||
|
||||
class SaidaBaixa extends Model
|
||||
{
|
||||
protected $table = 'almoxarifado_saida_baixa';
|
||||
|
||||
protected $fillable = [
|
||||
'saida_id',
|
||||
'motivo_id',
|
||||
'justificativa',
|
||||
'usuario_solicitante_id',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function saida()
|
||||
{
|
||||
return $this->belongsTo(Saida::class);
|
||||
}
|
||||
|
||||
public function motivo()
|
||||
{
|
||||
return $this->belongsTo(MotivoBaixa::class);
|
||||
}
|
||||
|
||||
public function usuarioSolicitante()
|
||||
{
|
||||
return $this->belongsTo(Usuario::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user