<?php

namespace Modules\Vrc\Entities;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class VrcPartBinLocation extends Model
{
    protected $table = 'vrc_part_bin_locations';

    protected $fillable = [
        'business_id', 'bin_id', 'erp_product_id', 'erp_variation_id', 'note',
    ];

    public function bin(): BelongsTo
    {
        return $this->belongsTo(VrcStorageBin::class, 'bin_id');
    }
}
