This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user