Files
econom-calculator/app/Models/MedicalReportFormTemplate.php
brusnitsyn 3edc8e667e
Some checks failed
tests / ci (8.5) (push) Has been cancelled
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
first commit
2026-04-03 17:20:05 +09:00

44 lines
944 B
PHP

<?php
namespace App\Models;
use Database\Factories\MedicalReportFormTemplateFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class MedicalReportFormTemplate extends Model
{
/** @use HasFactory<MedicalReportFormTemplateFactory> */
use HasFactory;
/**
* @var array<int, string>
*/
protected $fillable = [
'hospital_unit_id',
'department_key',
'name',
'description',
'schema',
'is_active',
];
/**
* @return array<string, string>
*/
protected function casts(): array
{
return [
'hospital_unit_id' => 'integer',
'schema' => 'array',
'is_active' => 'boolean',
];
}
public function hospitalUnit(): BelongsTo
{
return $this->belongsTo(HospitalUnit::class);
}
}