Files
rkm-conectasus-ci-sandbox/api/app/Models/WebService/Almoxarifado/Cliente/Fornecedor.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

39 lines
851 B
PHP

<?php
namespace App\Models\WebService\Almoxarifado\Cliente;
use App\Models\Cadastro\Fornecedor\Fornecedor as CadastroFornecedor;
use App\Models\Model;
class Fornecedor extends Model
{
protected $table = 'web_service_almoxarifado_cliente_fornecedor';
protected $fillable = [
'conectasus_fornecedor_id',
'nome',
'cnpj',
];
protected $hidden = [
'created_at',
'created_lotacao_id',
'created_centro_custo_id',
'updated_at',
'updated_lotacao_id',
'updated_centro_custo_id',
'externo_created_usuario_id',
'externo_updated_usuario_id',
];
public function conectasusFornecedor()
{
return $this->belongsTo(CadastroFornecedor::class);
}
public function entradas()
{
return $this->hasMany(Entrada::class);
}
}