40 lines
774 B
PHP
40 lines
774 B
PHP
<?php
|
|
|
|
namespace App\Models\Farmacia\AltoCusto;
|
|
|
|
use App\Models\Cadastro\Material\Material;
|
|
use App\Models\Model;
|
|
|
|
class ProcessoItem extends Model
|
|
{
|
|
protected $table = 'farmacia_alto_custo_processo_item';
|
|
|
|
protected $fillable = [
|
|
'material_id',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
public function processo()
|
|
{
|
|
return $this->belongsTo(Processo::class);
|
|
}
|
|
|
|
public function material()
|
|
{
|
|
return $this->belongsTo(Material::class);
|
|
}
|
|
|
|
public function meses()
|
|
{
|
|
return $this->hasMany(ProcessoItemMes::class, 'item_id');
|
|
}
|
|
}
|