<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class VehicleEntry extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'plant_id',
        'vehicle_number',
        'entry_time',
        'exit_time',
        'duration',
        'type',
        'uuid',
        'boom_opened',
        'created_at',
        'created_by',
        'updated_at',
        'updated_by',
    ];

    public function plant(): BelongsTo
    {
        return $this->belongsTo(Plant::class);
    }
}
