Files
pds/app/Models/ProductionOrder.php
dhanabalan aad488be75
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Added outer status in production order model file
2026-11-28 10:00:17 +05:30

40 lines
741 B
PHP

<?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',
'print_status',
'print_panel_status',
'outer_status',
'created_at',
'created_by',
'updated_at',
'updated_by',
];
public function plant()
{
return $this->belongsTo(Plant::class);
}
public function item()
{
return $this->belongsTo(Item::class);
}
}