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

27 lines
478 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MaintenanceHostHistory extends Model
{
use HasFactory;
protected $fillable = [
'maintenance_history_id',
'host_id',
];
public function host()
{
return $this->belongsTo(Host::class);
}
public function historyTasks()
{
return $this->hasMany(MaintenanceTaskHistory::class);
}
}