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

28 lines
504 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MaintenanceHistory extends Model
{
use HasFactory;
protected $fillable = [
'maintenance_id',
'start_at',
'finished_at',
];
public function maintenance()
{
return $this->BelongsTo(Maintenance::class);
}
public function historyHosts()
{
return $this->hasMany(MaintenanceHostHistory::class);
}
}