Added coil packing model file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
This commit is contained in:
35
app/Models/CoilPacking.php
Normal file
35
app/Models/CoilPacking.php
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
|
class CoilPacking extends Model
|
||||||
|
{
|
||||||
|
use SoftDeletes;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'plant_id',
|
||||||
|
'item_id',
|
||||||
|
'coil_packing_number',
|
||||||
|
'process_order',
|
||||||
|
'coil_packing_status',
|
||||||
|
'created_at',
|
||||||
|
'updated_at',
|
||||||
|
'scanned_at',
|
||||||
|
'created_by',
|
||||||
|
'updated_by',
|
||||||
|
'scanned_by',
|
||||||
|
];
|
||||||
|
|
||||||
|
public function plant()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Plant::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function item()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Item::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user