Files
rkm-conectasus-ci-sandbox/api/app/Models/ExameImagem/CotaPrestador.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

60 lines
1.3 KiB
PHP

<?php
namespace App\Models\ExameImagem;
use App\Models\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Cadastro\Estabelecimento\Unidade;
use App\Models\Cadastro\Estabelecimento\Infraestrutura;
use App\Models\ExameImagem\Parametrizacao\TipoCotaPrestador;
class CotaPrestador extends Model
{
use SoftDeletes;
protected $table = 'exame_imagem_parametrizacao_cota_prestador';
protected $fillable = [
'id',
'unidade_id',
'infraestrutura_id',
'cota_tipo_id',
'inicio',
'fim',
'cota_valor',
'cota_unidade',
'observacao',
];
protected $hidden = [
'created_lotacao_id',
'created_centro_custo_id',
'updated_at',
'updated_lotacao_id',
'updated_centro_custo_id',
'deleted_at',
'deleted_lotacao_id',
'deleted_centro_custo_id',
];
public function unidade()
{
return $this->belongsTo(Unidade::class);
}
public function infraestrutura()
{
return $this->belongsTo(Infraestrutura::class);
}
public function tipo()
{
return $this->belongsTo(TipoCotaPrestador::class);
}
public function getIsAllowedToDeleteAttribute()
{
return true;
}
}