Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
32 lines
574 B
PHP
32 lines
574 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',
|
|
];
|
|
|
|
public function plant()
|
|
{
|
|
return $this->belongsTo(Plant::class);
|
|
}
|
|
|
|
public function item()
|
|
{
|
|
return $this->belongsTo(Item::class);
|
|
}
|
|
}
|