<?php

namespace App\Models;

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

class ProductAttribute extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'description',
        'product_attribute_type_id',
        'priority',
        'status',
        'is_default',
        'code'
    ];
    public function getProductAttributeType()
    {
        return $this->belongsTo(ProductAttributeType::class,'product_attribute_type_id');
    }
}
