Added production order model file
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-04-30 14:59:23 +05:30
parent 24576ce480
commit 5bacae8f53

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ProductionOrder extends Model
{
use SoftDeletes;
protected $fillable = [
'plant_id',
'item_id',
'quantity',
'start_date',
'end_date',
'production_order',
'from_serial_number',
'to_serial_number',
];
public function plant()
{
return $this->belongsTo(Plant::class);
}
public function item()
{
return $this->belongsTo(Item::class);
}
}