<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class MaintenanceRecord extends Model
{
    protected $table = 'maintenance_records';

    protected $fillable = [
        'vehicle_id',
        'service_type',
        'service_date',
        'cost',
        'vendor',
        'notes',

        'maintenance_status',
        'completion_date',
        'completion_notes',

        'completion_date',
        'repair_proof',
        'warehouse_proof',
        'completion_notes'
    ];

    public function vehicle()
    {
        return $this->belongsTo(Vehicle::class);
    }
}