This commit is contained in:
31
api/app/Models/Cadastro/Estabelecimento/Servico.php
Normal file
31
api/app/Models/Cadastro/Estabelecimento/Servico.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cadastro\Estabelecimento;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Models\ProntoAtendimento\Plantao\Plantao;
|
||||
|
||||
class Servico extends Model
|
||||
{
|
||||
protected $table = 'cadastro_servico';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function setores()
|
||||
{
|
||||
return $this->hasMany(Setor::class);
|
||||
}
|
||||
|
||||
public function plantoes()
|
||||
{
|
||||
return $this->hasMany(Plantao::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user