<?php

namespace App\Models;

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

class ReworkLocatorInvoiceValidation extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'plant_id',
		'invoice_number',
		'serial_number',
		'pallet_number',
		'locator_number',
		'scanned_status',
		'upload_status',
		'created_by',
		'scanned_by',
		'updated_by',
		'reworked_by',
		'created_at',
		'updated_at',
		'scanned_at',
		'reworked_at',
    ];

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

}
