23 lines
394 B
PHP
23 lines
394 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);
|
|
}
|
|
}
|