This commit is contained in:
39
api/app/Models/Imunizacao/Saida.php
Normal file
39
api/app/Models/Imunizacao/Saida.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Imunizacao;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Saida extends Model
|
||||
{
|
||||
protected $table = 'imunizacao_saida';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'tipo_id',
|
||||
'sala_vacinacao_id',
|
||||
'motivo_id',
|
||||
'motivo_indisponibilidade',
|
||||
'observacao',
|
||||
'data_saida',
|
||||
];
|
||||
|
||||
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(SaidaVacina::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user