<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BOMModel extends Model
{
    protected $table = 'bom';
    protected $primaryKey = 'id';
    protected $fillable = [
        'branch_id',
        'assemble_item',
        'oprntl_flag',
        'remarks',
        'created_by',
        'created_at',
        'updated_at',
    ];

    public function bomItems()
    {
        return $this->hasMany(BOMItemsModel::class, 'bom_id');
    }
}
