Добавить колонку отделение. Пока добавлен только МИС #2
This commit is contained in:
16
app/Models/Mis/SttStationarBranch.php
Normal file
16
app/Models/Mis/SttStationarBranch.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Mis;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SttStationarBranch extends Model
|
||||
{
|
||||
protected $table = 'stt_stationarbranch';
|
||||
protected $primaryKey = 'StationarBranchID';
|
||||
|
||||
public function department()
|
||||
{
|
||||
return $this->hasOne(OmsDepartment::class, 'DepartmentID', 'rf_DepartmentID');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user