23 lines
378 B
PHP
23 lines
378 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Maintenance extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'description',
|
|
'schedule',
|
|
];
|
|
|
|
public function history()
|
|
{
|
|
return $this->hasMany(MaintenanceHistory::class);
|
|
}
|
|
}
|