37 lines
870 B
PHP
37 lines
870 B
PHP
<?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');
|
|
}
|
|
}
|