LAR_Maintenance/app/Models/MaintenanceTaskHistory.php

29 lines
549 B
PHP
Raw Normal View History

2024-07-30 08:44:58 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MaintenanceTaskHistory extends Model
{
use HasFactory;
2024-08-07 07:54:20 +00:00
2024-08-06 09:02:45 +00:00
protected $fillable = [
'maintenance_task_id',
'maintenance_history_id',
'maintenance_host_history_id',
];
2024-08-06 06:31:51 +00:00
2024-08-06 09:02:45 +00:00
public function maintenance()
2024-08-06 06:31:51 +00:00
{
2024-08-06 09:02:45 +00:00
return $this->BelongsTo(MaintenanceHistory::class);
}
public function maintenanceTask()
{
return $this->belongsTo(MaintenanceTask::class);
2024-08-06 06:31:51 +00:00
}
2024-08-07 08:30:51 +00:00
2024-07-30 08:44:58 +00:00
}