<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Vehicle extends Model
{
    use HasFactory;
    protected $fillable = [
    'image',
    'vehicle_name',
    'type',
    'year_model',
    'capacity',
    'fuel_type',
    'status'
];

public function maintenanceRecords()
{
    return $this->hasMany(MaintenanceRecord::class);
}

}
