first commit
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

This commit is contained in:
brusnitsyn
2026-04-03 17:20:05 +09:00
commit 3edc8e667e
358 changed files with 39258 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php
namespace App\Models;
use Database\Factories\HospitalUnitFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class HospitalUnit extends Model
{
/** @use HasFactory<HospitalUnitFactory> */
use HasFactory;
/**
* @var array<int, string>
*/
protected $fillable = [
'profile_id',
'name',
'slug',
'is_reporting_unit',
'report_input_type',
'is_active',
];
/**
* @return array<string, string>
*/
protected function casts(): array
{
return [
'profile_id' => 'integer',
'is_reporting_unit' => 'boolean',
'is_active' => 'boolean',
];
}
public function profile(): BelongsTo
{
return $this->belongsTo(Profile::class);
}
}