<?php

namespace App\Domain\Identity\Models;

use App\Domain\Shared\Traits\BelongsToAcademy;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use App\Domain\Shared\Traits\BelongsToBranch;

class BranchSetting extends Model
{
    use BelongsToAcademy, BelongsToBranch;

    protected $fillable = [
        'academy_id',
        'branch_id',
        'key',
        'value',
        'group',
    ];

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