This commit is contained in:
37
api/app/Models/WebService/Almoxarifado/Cliente/Material.php
Normal file
37
api/app/Models/WebService/Almoxarifado/Cliente/Material.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\WebService\Almoxarifado\Cliente;
|
||||
|
||||
use App\Models\Cadastro\Material\Material as CadastroMaterial;
|
||||
use App\Models\Model;
|
||||
|
||||
class Material extends Model
|
||||
{
|
||||
protected $table = 'web_service_almoxarifado_cliente_material';
|
||||
|
||||
protected $fillable = [
|
||||
'conectasus_material_id',
|
||||
'nome',
|
||||
];
|
||||
|
||||
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 conectasusMaterial()
|
||||
{
|
||||
return $this->belongsTo(CadastroMaterial::class);
|
||||
}
|
||||
|
||||
public function entradaItens()
|
||||
{
|
||||
return $this->hasMany(EntradaItem::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user