Added ocr model file

This commit is contained in:
dhanabalan
2025-10-16 17:58:56 +05:30
parent d7783a2ef9
commit e8fef2722d

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class OcrValidation extends Model
{
use SoftDeletes;
protected $fillable = [
'plant_id',
'item_id',
'gr_number',
'created_at',
'updated_at',
'created_by',
'updated_by',
];
public function plant(): BelongsTo
{
return $this->belongsTo(Plant::class);
}
public function item(): BelongsTo
{
return $this->belongsTo(Item::class);
}
}