<?php

namespace App\Models;

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

class TaxGroupMember extends Model
{
    protected $fillable = ['tax_group_id', 'tax_rate_id', 'sort_order'];

    public function group(): BelongsTo
    {
        return $this->belongsTo(TaxRate::class, 'tax_group_id');
    }

    public function taxRate(): BelongsTo
    {
        return $this->belongsTo(TaxRate::class, 'tax_rate_id');
    }
}
