This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cadastro;
|
||||
|
||||
use App\Models\Cadastro\Estabelecimento\Infraestrutura;
|
||||
use App\Models\Cadastro\Fornecedor\Fornecedor;
|
||||
use App\Models\Model;
|
||||
|
||||
class ServicoManutencaoPrestadorFornecedor extends Model
|
||||
{
|
||||
protected $table = 'cadastro_servico_manutencao_prestador_fornecedor';
|
||||
|
||||
protected $fillable = [
|
||||
'servico_manutencao_id',
|
||||
'unidade_executante_manutencao_id',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function getInfraestrutura()
|
||||
{
|
||||
return $this->belongsTo(Infraestrutura::class, 'infraestrutura_id');
|
||||
}
|
||||
|
||||
public function getFornecedor()
|
||||
{
|
||||
return $this->belongsTo(Fornecedor::class, 'fornecedor_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user