This commit is contained in:
37
api/app/Models/Imunizacao/Entrada.php
Normal file
37
api/app/Models/Imunizacao/Entrada.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Imunizacao;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Entrada extends Model
|
||||
{
|
||||
protected $table = 'imunizacao_entrada';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'tipo_id',
|
||||
'sala_vacinacao_id',
|
||||
'data_entrada',
|
||||
'origem',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function salaVacinacao()
|
||||
{
|
||||
return $this->belongsTo(SalaVacinacao::class);
|
||||
}
|
||||
|
||||
public function vacinas()
|
||||
{
|
||||
return $this->hasMany(EntradaVacina::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user