<?php

namespace App\Modules\Inventory\Models;

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

class InventoryAttributeOption extends Model
{
    protected $table = 'inventory_attribute_options';

    protected $fillable = [
        'attribute_id',
        'value_key',
        'label',
        'sort_order',
    ];

    public function attribute(): BelongsTo
    {
        return $this->belongsTo(InventoryAttribute::class, 'attribute_id');
    }
}
