LAR_Maintenance/app/Models/MaintenanceTaskHistory.php
2024-08-06 11:02:45 +02:00

28 lines
551 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);
}
}