<?php

namespace App\Models;

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

class MacroAssignment extends Model
{
    protected $fillable = [
        'part_type',
        'macro_id',
        'position',
        'label_id',
        'order',
    ];

    public function macro(): BelongsTo
    {
        return $this->belongsTo(Macro::class);
    }

    public function label(): BelongsTo
    {
        return $this->belongsTo(Label::class);
    }
}
