29 lines
549 B
PHP
29 lines
549 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class MaintenanceTaskHistory extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'maintenance_task_id',
|
|
'maintenance_history_id',
|
|
'maintenance_host_history_id',
|
|
];
|
|
|
|
public function maintenance()
|
|
{
|
|
return $this->BelongsTo(MaintenanceHistory::class);
|
|
}
|
|
|
|
public function maintenanceTask()
|
|
{
|
|
return $this->belongsTo(MaintenanceTask::class);
|
|
}
|
|
|
|
}
|