<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class part extends Model
{
    use HasFactory;

    protected $fillable = [
        'part_code',
        'part_name',
        'manufacture',
        'mfg_code',
        'unit',
        'min_qty',
        'Order_point',
        'Order_qty',
        'Qty',
        'Dimention',
        'Weight',
        'Picture',
        'Description',
        'Loc',
        'Row',
        'Col',
        'Pos',
        'parent',
    ];
    public function parent_info (){
        return $this->belongsTo(inventory_coding::class, "parent", "id");
    }
}
