This commit is contained in:
43
api/app/Models/WebService/Almoxarifado/Cliente/Unidade.php
Normal file
43
api/app/Models/WebService/Almoxarifado/Cliente/Unidade.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\WebService\Almoxarifado\Cliente;
|
||||
|
||||
use App\Models\Cadastro\Estabelecimento\CentroCusto as CadastroCentroCusto;
|
||||
use App\Models\Model;
|
||||
|
||||
class Unidade extends Model
|
||||
{
|
||||
protected $table = 'web_service_almoxarifado_cliente_unidade';
|
||||
|
||||
protected $casts = [
|
||||
'is_almoxarifado' => 'boolean',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'conectasus_centro_custo_id',
|
||||
'nome',
|
||||
'cnes',
|
||||
'is_almoxarifado',
|
||||
];
|
||||
|
||||
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 conectasusCentroCusto()
|
||||
{
|
||||
return $this->belongsTo(CadastroCentroCusto::class);
|
||||
}
|
||||
|
||||
public function entradas()
|
||||
{
|
||||
return $this->hasMany(Entrada::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user