Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 19s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 26s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 4m7s
Laravel Larastan / larastan (pull_request) Failing after 5m30s
39 lines
717 B
PHP
39 lines
717 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',
|
|
'created_at',
|
|
'created_by',
|
|
'updated_at',
|
|
'updated_by',
|
|
];
|
|
|
|
public function plant()
|
|
{
|
|
return $this->belongsTo(Plant::class);
|
|
}
|
|
|
|
public function item()
|
|
{
|
|
return $this->belongsTo(Item::class);
|
|
}
|
|
}
|