32 lines
815 B
PHP
Executable File
32 lines
815 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class HistoryOfEquipmentAmbitsInTheProject extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'history_of_equipment_ambits_in_the_project';
|
|
protected $primaryKey = 'ambits_id';
|
|
|
|
protected $fillable = [
|
|
'history_of_equipment_ambits_id',
|
|
'equipmentWorkHistorys_id',
|
|
'ambits_id',
|
|
'time_change_ambit',
|
|
];
|
|
|
|
public $timestamps = false;
|
|
|
|
public function AmbitsEquipment (){
|
|
return $this->belongsTo(AmbitsEquipment::class, 'ambits_id', 'ambits_id');
|
|
}
|
|
|
|
public function EquipmentWorkHistory (){
|
|
return $this->belongsTo(EquipmentWorkHistory::class, 'equipmentWorkHistorys_id', 'equipmentWorkHistorys_id');
|
|
}
|
|
}
|