first commit

This commit is contained in:
brusnitsyn
2026-01-04 23:15:06 +09:00
commit 0ec04cfb4b
104 changed files with 19072 additions and 0 deletions

22
app/Models/Department.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Department extends Model
{
protected $table = 'oms_department';
protected $primaryKey = 'departmentid';
public $timestamps = false;
protected $fillable = [
'departmentname',
'rf_lpuid'
];
public function lpu(): \Illuminate\Database\Eloquent\Relations\HasOne
{
return $this->hasOne(Lpu::class, 'lpuid', 'rf_lpuid');
}
}