<?php

namespace App\Models;

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

class FuelLog extends Model
{
    use HasFactory;

    protected $table = 'fuel_logs';

    protected $fillable = [
        'trip_id',
        'fuel_used',
        'notes'
    ];

    public function trip()
    {
        return $this->belongsTo(TripLog::class, 'trip_id');
    }
}