This commit is contained in:
42
api/app/Models/Farmacia/LivroPaginaLinha.php
Normal file
42
api/app/Models/Farmacia/LivroPaginaLinha.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Farmacia;
|
||||
|
||||
use App\Models\Almoxarifado\EntradaItem;
|
||||
use App\Models\Almoxarifado\SaidaItem;
|
||||
use App\Models\Model;
|
||||
|
||||
class LivroPaginaLinha extends Model
|
||||
{
|
||||
protected $table = 'farmacia_livro_pagina_linha';
|
||||
|
||||
protected $fillable = [
|
||||
'pagina_id',
|
||||
'entrada_item_id',
|
||||
'saida_item_id',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function pagina()
|
||||
{
|
||||
return $this->belongsTo(LivroPagina::class);
|
||||
}
|
||||
|
||||
public function entradaItem()
|
||||
{
|
||||
return $this->belongsTo(EntradaItem::class);
|
||||
}
|
||||
|
||||
public function saidaItem()
|
||||
{
|
||||
return $this->belongsTo(SaidaItem::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user