<?php

namespace App\Models;

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

class PalletValidation extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'plant_id',
		'pallet_number',
        'serial_number',
		'pallet_status',
		'locator_number',
        'locator_quantity',
		'created_at',
		'updated_at',
		'scanned_at',
		'created_by',
		'scanned_by',
		'updated_by',
    ];

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